VehicleSystem

Documents the VehicleSystem class and its functions.

circle-exclamation

Invoking VehicleSystem

To invoke the vehicle system, use the following Global function:

vs = Game.GetVehicleSystem()

Following that, you can invoke sub-functions listed below as follows:

vs:EnableAllPlayerVehicles()

Sub-Functions

EnableAllPlayerVehicles

EnableAllPlayerVehicles();

EnablePlayerVehicle

EnablePlayerVehicle(vehicle : String, enable : Bool, optional despawnIfDisabling : Bool)

GetPlayerVehicles

GetPlayerVehicles(out vehicles : array:PlayerVehicle);

TogglePlayerActiveVehicle

GetPlayerUnlockedVehicles

SpawnPlayerVehicle

DespawnPlayerVehicle

ToggleSummonMode

Unknown / Do Not Function

triangle-exclamation

Currently Known Vehicle Strings

circle-exclamation

Notes / Caveats

TweakDB currently contains entries for vehicles that aren't suffixed by _player. These vehicles cannot be added to owned vehicles due to flags in TweakDB which flags vehicles the player can own. Only vehicle strings that end in _player can be added to owned vehicles at this time.

Last updated