# break\_prop

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

## Açıklama

Bir oyuncu tarafından bir `prop_dynamic` veya `prop_physics` kırıldığında çağrılır.

## Üyeler

- [number](https://gmod.tr/wiki/number) **entindex**

  Kırılan prop'un [EntIndex](https://gmod.tr/wiki/Entity.EntIndex)'i.

- [number](https://gmod.tr/wiki/number) **userid**

  Bağlı oyuncunun [UserID](https://gmod.tr/wiki/Player:UserID)'si. Her seferinde 0 gibi görünüyor.

## Örnekler

### Örnek

Bu, hangi değerlere erişilebileceğini kolayca anlamak için tüm argümanları ve tablo değişkenlerini içeren temel bir şablondur.

```lua
gameevent.Listen( "break_prop" )
hook.Add( "break_prop", "break_prop_example", function( data )
	local entindex = data.entindex	// Kırılan Prop'un Entity:EntIndex()'i.
	local userid = data.userid		// Bağlı Oyuncunun UserID'si. Her seferinde 0 gibi görünüyor.

	// Bir oyuncu tarafından bir prop_dynamic veya prop_physics kırıldığında çağrılır.

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/gameevent/break_prop
