# Vehicle:GetVehicleClass

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

```lua
string Vehicle:GetVehicleClass()
```

## Açıklama

Aracın sınıf adını döndürür. Bu, yalnızca Sandbox modunda oluşturulan araçlar veya [Vehicle:SetVehicleClass](https://gmod.tr/wiki/Vehicle:SetVehicleClass) ile araç sınıfını doğru şekilde ayarlayan herhangi bir araç için kullanışlıdır.

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

1. [string](https://gmod.tr/wiki/string): Aracın sınıf adı.

### Örnek

Oyuncunun o anda içinde bulunduğu aracın oluşturma menüsündeki (spawn menu) adını yazdırır.

```lua
local c = Entity(1):GetVehicle():GetVehicleClass()
if ( !list.Get( "Vehicles" )[ c ] ) then return end
local t = list.Get( "Vehicles" )[ c ]
print( t.Name )
```

- [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/Vehicle:GetVehicleClass
