# GM:PreRegisterSENT

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

```lua
boolean GM:PreRegisterSENT( table ent, string class )
```

## Açıklama

[scripted_ents.Register](https://gmod.tr/wiki/scripted_ents.Register) tarafından çağrılır.

## Argümanlar

1. [table](https://gmod.tr/wiki/table) **ent**: Kaydedilecek varlık tablosu.
2. [string](https://gmod.tr/wiki/string) **class**: Atanacak sınıf adı.

## Döndürülen Değer

1. [boolean](https://gmod.tr/wiki/boolean): Varlığın kaydedilmesini önlemek için `false` döndürün. Başka bir değer döndürmenin herhangi bir etkisi yoktur.

### Örnek

Garry tarafından oluşturulan varlıkların kaydedilmesini engeller ve yalnızca yöneticiye özel varlıkları normal varlıklara dönüştürür.

```lua
hook.Add( "PreRegisterSENT", "MakeThingsFun", function( ent, class )
    if ( ent.Author == "Garry Newman" ) then
        return false
    end

    ent.AdminOnly = false
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:PreRegisterSENT
