VehicleSystem
classnative name gameVehicleSystemnative
extends IVehicleSystem › IGameSystem › IScriptable › ISerializable
Properties 1
| Name | Type | Flags |
|---|---|---|
restrictionTags | array<CName> | scriptedprivate |
Methods 26
native func CanDriverShootInCarChase(vehicleID: EntityID) -> Bool
native func CanPassengersShootInCarChase(vehicleID: EntityID) -> Bool
native func DespawnPlayerVehicle(vehicleID: GarageVehicleID)
native func EnableAllPlayerVehicles()native func EnablePlayerVehicle(vehicle: String, enable: Bool, opt despawnIfDisabling: Bool) -> Bool
native func EnablePlayerVehicleCollision(enable: Bool)
native func GetActivePlayerVehicle(opt vehicleType: gamedataVehicleType) -> PlayerVehicle
native func GetPlayerUnlockedVehicles(out unlockedVehicles: array<PlayerVehicle>)
native func GetPlayerVehicles(out vehicles: array<PlayerVehicle>)
public final const func GetVehicleRestrictions() -> array<CName>scripted
native func IsActivePlayerVehicleOnCooldown(opt vehicleType: gamedataVehicleType) -> Bool
native func IsPlayerVehicleOnCooldown(opt vehicleType: gamedataVehicleType, opt vehicleID: TweakDBID) -> Bool
native func IsVehiclePlayerUnlocked(recordID: TweakDBID) -> Bool
protected cb func OnSummonVehicleFailed() -> Boolscripted
protected final func OnVehicleSystemAttach()scripted
native func ResetChaseManager()native func SetChaseManagerLimit(limit: Int32)
native func SetRammingAttemptDuration(value: Float)
native func SetRammingUponCollisionDuration(value: Float)
native func SetSuicideSpeedChancePercentage(value: Float)
native func SpawnActivePlayerVehicle(opt vehicleType: gamedataVehicleType) -> Bool
native func SpawnPlayerVehicle(opt vehicleType: gamedataVehicleType, opt vehicleID: TweakDBID, opt spawnOnlyOnValidRoad: Bool) -> Bool
native func TogglePlayerActiveVehicle(vehicleID: GarageVehicleID, vehicleType: gamedataVehicleType, enable: Bool)
native func TogglePlayerFavoriteVehicle(vehicleID: GarageVehicleID) -> Bool
native func ToggleSummonMode()native func UnregisterPlayerVehicle(vehicleID: GarageVehicleID)