# GM:PropBreak

- **Ortam:** İstemci, Sunucu
- **İngilizce aslı:** https://wiki.facepunch.com/gmod/GM:PropBreak
- **Çeviri tarihi:** 2025-09-08

```lua
GM:PropBreak( Player attacker, Entity prop )
```

## Açıklama

Bir prop yok edildiğinde çağrılır.

## Argümanlar

1. [Player](https://gmod.tr/wiki/Player) **attacker**: Prop'u kıran kişi. Bu, prop'un bir oyuncu tarafından kırılmadığı durumlarda NULL bir entity olabilir.
2. [Entity](https://gmod.tr/wiki/Entity) **prop**: Saldıran tarafından kırılan entity.

### Örnek

Bu örnek, bir kişi bir prop'u (örneğin ahşap bir sandık) kırdığında oyuncuyu öldürür.

```lua
hook.Add( "PropBreak", "PropVengeance", function( client, prop )
	if ( IsValid( client ) ) then client:Kill() end
end )
```

- [GMod Wiki ana sayfası](https://gmod.tr/wiki)

---

[Tüm sunucular](https://gmod.tr/) · [GmodTR Launcher](https://gmod.tr/launcher) · [Rehber](https://gmod.tr/rehber) · [GMod Wiki](https://gmod.tr/wiki) · [GmodTR nedir?](https://gmod.tr/hakkinda) · [Sunucu ekle](https://gmod.tr/sunucu-ekle) · [Discord](https://discord.gg/gmodtr)

Kaynak: https://gmod.tr/wiki/GM:PropBreak
