# player\_manager.RegisterClass

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

```lua
player_manager.RegisterClass( string name, table table, string base = nil )
```

## Açıklama

Daha sonra oyunculara atanmak üzere bir sınıf metatablosu (class metatable) kaydeder.

## Argümanlar

1. [string](https://gmod.tr/wiki/string) **name**: Sınıf adı
2. [table](https://gmod.tr/wiki/table) **table**: Sınıf metatablosu, bkz. [PLAYER yapısı](https://gmod.tr/wiki/Structures/PLAYER)
3. [string](https://gmod.tr/wiki/string) **base** = nil: Temel sınıf adı

### Örnek

Bir sınıf tablosu kaydetmeye hızlı bir bakış.

```lua
local PLAYER = {}

PLAYER.DisplayName = "Default Class"

-- ...

player_manager.RegisterClass( "player_default", PLAYER, nil )
```

### Örnek

Tabloyu kaydederken ayarladığınız verileri baseclass.Get( "<classname>" ) kullanarak alabilirsiniz.

```lua
PrintTable( baseclass.Get( "player_default" ) )
```

**Çıktı:**

```lua
Walkspeed = 300
RunSpeed = 500
CalcView = function: 0x00665988
UseVMHands = true
--- etc...
```

- [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/player_manager.RegisterClass
