# Vehicle

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

Bu, sadece araçlar için mevcut olan tüm metotların bir listesidir. Araçlar üzerinde [Entity](https://gmod.tr/wiki/Entity) fonksiyonlarını çağırmak da mümkündür.

Entity'den metotları miras alır.

## Metotlar

[number](https://gmod.tr/wiki/number) Vehicle:[BoostTimeLeft](https://gmod.tr/wiki/Vehicle:BoostTimeLeft)()

Kalan takviye (boost) süresini döndürür.

[Vector](https://gmod.tr/wiki/Vector) Vehicle:[CheckExitPoint](https://gmod.tr/wiki/Vehicle:CheckExitPoint)( [number](https://gmod.tr/wiki/number) yaw, [number](https://gmod.tr/wiki/number) distance )

Verilen yönde engellenmemiş bir çıkış noktası varsa, araçtan ayrılmak için bir çıkış noktası bulmaya çalışır.

Vehicle:[EnableEngine](https://gmod.tr/wiki/Vehicle:EnableEngine)( [boolean](https://gmod.tr/wiki/boolean) enable )

Motorun etkin mi yoksa devre dışı mı olduğunu, yani çalıştırılıp çalıştırılamayacağını ayarlar.

[number](https://gmod.tr/wiki/number), [number](https://gmod.tr/wiki/number), [number](https://gmod.tr/wiki/number) Vehicle:[GetAmmo](https://gmod.tr/wiki/Vehicle:GetAmmo)()

Aracın mühimmatı hakkında bilgi döndürür.

[number](https://gmod.tr/wiki/number) Vehicle:[GetCameraDistance](https://gmod.tr/wiki/Vehicle:GetCameraDistance)()

Üçüncü şahıs kamera mesafesini döndürür.

[Entity](https://gmod.tr/wiki/Entity) Vehicle:[GetDriver](https://gmod.tr/wiki/Vehicle:GetDriver)()

Aracın sürücüsünü alır, eğer sürücü yoksa NULL döndürür.

[number](https://gmod.tr/wiki/number) Vehicle:[GetHLSpeed](https://gmod.tr/wiki/Vehicle:GetHLSpeed)()

Aracın mevcut hızını Half-Life Hammer Birimi (in/s) cinsinden döndürür. Entity:GetVelocity + Vector:Length ile aynıdır.

[number](https://gmod.tr/wiki/number) Vehicle:[GetMaxSpeed](https://gmod.tr/wiki/Vehicle:GetMaxSpeed)()

Aracın maksimum hızını MPH (mil/saat) cinsinden döndürür.

[table](https://gmod.tr/wiki/table) Vehicle:[GetOperatingParams](https://gmod.tr/wiki/Vehicle:GetOperatingParams)()

Araç hakkında bazı bilgiler döndürür.

[Entity](https://gmod.tr/wiki/Entity) Vehicle:[GetPassenger](https://gmod.tr/wiki/Vehicle:GetPassenger)( [number](https://gmod.tr/wiki/number) passenger )

Aracın yolcusunu alır, eğer yolcu yoksa NULL döndürür.

[Vector](https://gmod.tr/wiki/Vector), [Angle](https://gmod.tr/wiki/Angle) Vehicle:[GetPassengerSeatPoint](https://gmod.tr/wiki/Vehicle:GetPassengerSeatPoint)( [number](https://gmod.tr/wiki/number) role )

Belirli bir yolcu koltuğunun konumunu ve açısını döndürür.

[number](https://gmod.tr/wiki/number) Vehicle:[GetRPM](https://gmod.tr/wiki/Vehicle:GetRPM)()

Aracın mevcut RPM'ini (dakikadaki devir sayısı) döndürür. Bu değer sahtedir ve aracın hareketini gerçekten etkilemez.

[number](https://gmod.tr/wiki/number) Vehicle:[GetSpeed](https://gmod.tr/wiki/Vehicle:GetSpeed)()

Aracın mevcut hızını MPH (mil/saat) cinsinden döndürür.

[number](https://gmod.tr/wiki/number) Vehicle:[GetSteering](https://gmod.tr/wiki/Vehicle:GetSteering)()

Aracın mevcut direksiyon durumunu döndürür.

[number](https://gmod.tr/wiki/number) Vehicle:[GetSteeringDegrees](https://gmod.tr/wiki/Vehicle:GetSteeringDegrees)()

Aracın maksimum direksiyon açısını döndürür.

[boolean](https://gmod.tr/wiki/boolean) Vehicle:[GetThirdPersonMode](https://gmod.tr/wiki/Vehicle:GetThirdPersonMode)()

Aracın üçüncü şahıs modunun etkin olup olmadığını döndürür.

[number](https://gmod.tr/wiki/number) Vehicle:[GetThrottle](https://gmod.tr/wiki/Vehicle:GetThrottle)()

Aracın mevcut gaz seviyesini döndürür.

[string](https://gmod.tr/wiki/string) Vehicle:[GetVehicleClass](https://gmod.tr/wiki/Vehicle:GetVehicleClass)()

Aracın sınıf adını döndürür. Bu, yalnızca Sandbox'ta oluşturulan araçlar veya Vehicle:SetVehicleClass ile araç sınıfını düzgün bir şekilde ayarlayan herhangi bir araç için kullanışlıdır.

[table](https://gmod.tr/wiki/table) Vehicle:[GetVehicleParams](https://gmod.tr/wiki/Vehicle:GetVehicleParams)()

Belirtilen aracın araç parametrelerini döndürür.

[Vector](https://gmod.tr/wiki/Vector), [Angle](https://gmod.tr/wiki/Angle), [number](https://gmod.tr/wiki/number) Vehicle:[GetVehicleViewPosition](https://gmod.tr/wiki/Vehicle:GetVehicleViewPosition)( [number](https://gmod.tr/wiki/number) role = 0 )

Belirtilen bir yolcu koltuğunun görüş pozisyonunu ve ileri açısını döndürür.

[PhysObj](https://gmod.tr/wiki/PhysObj) Vehicle:[GetWheel](https://gmod.tr/wiki/Vehicle:GetWheel)( [number](https://gmod.tr/wiki/number) wheel )

Belirtilen tekerleğin PhysObj'sini döndürür.

[number](https://gmod.tr/wiki/number) Vehicle:[GetWheelBaseHeight](https://gmod.tr/wiki/Vehicle:GetWheelBaseHeight)( [number](https://gmod.tr/wiki/number) wheel )

Temel tekerlek yüksekliğini döndürür.

[Vector](https://gmod.tr/wiki/Vector), [number](https://gmod.tr/wiki/number), [boolean](https://gmod.tr/wiki/boolean) Vehicle:[GetWheelContactPoint](https://gmod.tr/wiki/Vehicle:GetWheelContactPoint)( [number](https://gmod.tr/wiki/number) wheel )

Tekerleğin temas noktasını döndürür.

[number](https://gmod.tr/wiki/number) Vehicle:[GetWheelCount](https://gmod.tr/wiki/Vehicle:GetWheelCount)()

Aracın tekerlek sayısını döndürür.

[number](https://gmod.tr/wiki/number) Vehicle:[GetWheelTotalHeight](https://gmod.tr/wiki/Vehicle:GetWheelTotalHeight)( [number](https://gmod.tr/wiki/number) wheel )

Toplam tekerlek yüksekliğini döndürür.

[boolean](https://gmod.tr/wiki/boolean) Vehicle:[HasBoost](https://gmod.tr/wiki/Vehicle:HasBoost)()

Bu aracın takviyesi (boost) olup olmadığını döndürür.

[boolean](https://gmod.tr/wiki/boolean) Vehicle:[HasBrakePedal](https://gmod.tr/wiki/Vehicle:HasBrakePedal)()

Bu aracın fren pedalı olup olmadığını döndürür. Bkz. Vehicle:SetHasBrakePedal.

[boolean](https://gmod.tr/wiki/boolean) Vehicle:[IsBoosting](https://gmod.tr/wiki/Vehicle:IsBoosting)()

Bu aracın şu anda takviye (boost) kullanıp kullanmadığını döndürür.

[boolean](https://gmod.tr/wiki/boolean) Vehicle:[IsEngineEnabled](https://gmod.tr/wiki/Vehicle:IsEngineEnabled)()

Motorun etkin olup olmadığını, yani çalıştırılıp çalıştırılamayacağını döndürür.

[boolean](https://gmod.tr/wiki/boolean) Vehicle:[IsEngineStarted](https://gmod.tr/wiki/Vehicle:IsEngineStarted)()

Motorun çalışır durumda olup olmadığını döndürür.

[boolean](https://gmod.tr/wiki/boolean) Vehicle:[IsValidVehicle](https://gmod.tr/wiki/Vehicle:IsValidVehicle)()

Belirli bir Aracın tam olarak başlatılıp başlatılmadığını belirler. Nadir durumlarda, geçerli bir araç varlığının, oluşturulduktan sonra araç üzerinde Entity:Spawn çağrılmadan önceki gibi geçersiz bir durumda olması mümkündür. Bu fonksiyon false döndürürse, Vehicle fonksiyonları bu araçta kullanılamaz, ancak Entity fonksiyonları kullanılabilir.

[boolean](https://gmod.tr/wiki/boolean) Vehicle:[IsVehicleBodyInWater](https://gmod.tr/wiki/Vehicle:IsVehicleBodyInWater)()

Bu aracın motorunun su altında olup olmadığını döndürür. (Dahili olarak "engine" veya "vehicle_engine" eklenti noktası kontrol edilir)

Vehicle:[ReleaseHandbrake](https://gmod.tr/wiki/Vehicle:ReleaseHandbrake)()

Aracın el frenini (Jeep) serbest bırakır, böylece içinde yolcu olmadan hareket edebilir. Araçta bir sürücü varsa bu durum geçersiz kılınır. Vehicle:SetHandbrake( false ) ile aynıdır.

Vehicle:[SetBoost](https://gmod.tr/wiki/Vehicle:SetBoost)( [number](https://gmod.tr/wiki/number) boost )

Takviyeyi (boost) ayarlar. Araçta geçerli bir sürücü varken bu fonksiyonun çalışmaması mümkündür.

Vehicle:[SetCameraDistance](https://gmod.tr/wiki/Vehicle:SetCameraDistance)( [number](https://gmod.tr/wiki/number) distance )

Aracın üçüncü şahıs kamera mesafesini ayarlar.

Vehicle:[SetHandbrake](https://gmod.tr/wiki/Vehicle:SetHandbrake)( [boolean](https://gmod.tr/wiki/boolean) handbrake )

Jeep'in el frenini açar veya kapatır, böylece içinde sürücü olmadan hareket edebilir. Araçta bir sürücü varken hiçbir şey yapmaz.

Vehicle:[SetHasBrakePedal](https://gmod.tr/wiki/Vehicle:SetHasBrakePedal)( [boolean](https://gmod.tr/wiki/boolean) brakePedal )

Bu aracın fren pedalı olup olmayacağını ayarlar.

Vehicle:[SetMaxReverseThrottle](https://gmod.tr/wiki/Vehicle:SetMaxReverseThrottle)( [number](https://gmod.tr/wiki/number) maxRevThrottle )

Maksimum geri gaz seviyesini ayarlar.

Vehicle:[SetMaxThrottle](https://gmod.tr/wiki/Vehicle:SetMaxThrottle)( [number](https://gmod.tr/wiki/number) maxThrottle )

Maksimum ileri gaz seviyesini ayarlar.

Vehicle:[SetSpringLength](https://gmod.tr/wiki/Vehicle:SetSpringLength)( [number](https://gmod.tr/wiki/number) wheel, [number](https://gmod.tr/wiki/number) length )

Belirtilen tekerleğin yay uzunluğunu ayarlar.

Vehicle:[SetSteering](https://gmod.tr/wiki/Vehicle:SetSteering)( [number](https://gmod.tr/wiki/number) front, [number](https://gmod.tr/wiki/number) rear )

Aracın direksiyonunu ayarlar. Doğru aralık, 0 ila 1 veya -1 ila 1'dir.

Vehicle:[SetSteeringDegrees](https://gmod.tr/wiki/Vehicle:SetSteeringDegrees)( [number](https://gmod.tr/wiki/number) steeringDegrees )

Aracın maksimum direksiyon açısını ayarlar.

Vehicle:[SetThirdPersonMode](https://gmod.tr/wiki/Vehicle:SetThirdPersonMode)( [boolean](https://gmod.tr/wiki/boolean) enable )

Üçüncü şahıs modu durumunu ayarlar.

Vehicle:[SetThrottle](https://gmod.tr/wiki/Vehicle:SetThrottle)( [number](https://gmod.tr/wiki/number) throttle )

Aracın gaz seviyesini ayarlar. Araçta geçerli bir sürücü varken bu fonksiyonun çalışmaması mümkündür.

Vehicle:[SetVehicleClass](https://gmod.tr/wiki/Vehicle:SetVehicleClass)( [string](https://gmod.tr/wiki/string) class )

Bu dahili olarak kullanılır - kullanabiliyor olsanız da muhtemelen kullanmamalısınız. Aracın sınıf adını ayarlar.

Vehicle:[SetVehicleEntryAnim](https://gmod.tr/wiki/Vehicle:SetVehicleEntryAnim)( [boolean](https://gmod.tr/wiki/boolean) bOn )

Giriş veya çıkış kamera animasyonunun oynatılıp oynatılmayacağını ayarlar.

Vehicle:[SetVehicleParams](https://gmod.tr/wiki/Vehicle:SetVehicleParams)( [table](https://gmod.tr/wiki/table) params )

Belirtilen aracın araç parametrelerini ayarlar. VehicleParams yapısındaki tüm değişkenler ayarlanamaz.

Vehicle:[SetWheelFriction](https://gmod.tr/wiki/Vehicle:SetWheelFriction)( [number](https://gmod.tr/wiki/number) wheel, [number](https://gmod.tr/wiki/number) friction )

Belirtilen tekerleğin sürtünmesini ayarlar. Bu fonksiyon bozuk olabilir.

Vehicle:[StartEngine](https://gmod.tr/wiki/Vehicle:StartEngine)( [boolean](https://gmod.tr/wiki/boolean) start )

Motoru çalıştırır veya durdurur.

- [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
