VehicleSystem

Documents the VehicleSystem class and its functions.

PARTIALLY DOCUMENTED

We have limited information on how these commands function. More specifics will be added over time.

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

TogglePlayerActiveVehicle(vehicleID : GarageVehicleID, vehicleType : gamedataVehicleType, enable : Bool)

GetPlayerUnlockedVehicles

GetPlayerUnlockedVehicles(out unlockedVehicles : array:PlayerVehicle);

SpawnPlayerVehicle

SpawnPlayerVehicle(optional vehicleType : gamedataVehicleType);

DespawnPlayerVehicle

DespawnPlayerVehicle(vehicleID : GarageVehicleID);

ToggleSummonMode

ToggleSummonMode();

Unknown / Do Not Function

We have limited or no information on what the below functions do nor how they are used at this time.

EnablePlayerVehicleCollision(enable : Bool);
GetVehicleRestrictions() : array:CName;
OnVehicleSystemAttach();

Currently Known Vehicle Strings

Vehicle.v_standard2_archer_hella_player
Vehicle.v_standard25_mahir_supron_player
Vehicle.v_standard2_makigai_maimai_player
Vehicle.v_standard2_thorton_colby_player
Vehicle.v_standard25_thorton_colby_pickup_player
Vehicle.v_standard25_thorton_colby_pickup_02_player
Vehicle.v_standard25_thorton_colby_nomad_player
Vehicle.v_standard2_thorton_galena_player
Vehicle.v_standard2_thorton_galena_nomad_player
Vehicle.v_standard2_thorton_galena_bobas_player
Vehicle.v_standard3_thorton_mackinaw_player
Vehicle.v_standard3_thorton_mackinaw_ncu_player
Vehicle.v_sport2_villefort_alvarado_valentinos_player
Vehicle.v_sport2_villefort_alvarado_player
Vehicle.v_standard25_villefort_columbus_player
Vehicle.v_standard2_villefort_cortes_player
Vehicle.v_standard2_villefort_cortes_delamain_player
Vehicle.v_standard3_chevalier_emperor_player
Vehicle.v_standard2_chevalier_thrax_player
Vehicle.v_sportbike2_arch_jackie_player
Vehicle.v_sportbike2_arch_jackie_tuned_player
Vehicle.v_sportbike2_arch_player
Vehicle.v_sportbike2_arch_tyger_player
Vehicle.v_sportbike3_brennan_apollo_player
Vehicle.v_sportbike3_brennan_apollo_nomad_player
Vehicle.v_sportbike1_yaiba_kusanagi_tyger_player
Vehicle.v_sportbike1_yaiba_kusanagi_player
Vehicle.v_sport2_porsche_911turbo_player
Vehicle.v_standard2_archer_quartz_player
Vehicle.v_sport2_mizutani_shion_nomad_player
Vehicle.v_sport2_mizutani_shion_nomad_02_player
Vehicle.v_sport2_mizutani_shion_player
Vehicle.v_sport1_quadra_turbo_player
Vehicle.v_sport1_quadra_turbo_r_player
Vehicle.v_sport2_quadra_type66_nomad_ncu_player
Vehicle.v_sport2_quadra_type66_nomad_player
Vehicle.v_sport2_quadra_type66_player
Vehicle.v_sport2_quadra_type66_avenger_player
Vehicle.v_sport1_rayfield_aerondight_player
Vehicle.v_sport1_rayfield_caliburn_player
Vehicle.v_sport1_rayfield_caliburn_02_player
Vehicle.v_sport1_herrera_outlaw_player
Vehicle.v_standard2_archer_bandit_player
Vehicle.v_standard3_thorton_mackinaw_player_02
Vehicle.v_sport2_quadra_type66_02_player
Vehicle.v_standard2_archer_quartz_nomad_player
Vehicle.v_utility4_thorton_mackinaw_bmf_player
Vehicle.v_sport2_quadra_type66_nomad_tribute
Vehicle.v_sport1_herrera_outlaw_heist_player
Vehicle.v_sport1_herrera_riptide_player
Vehicle.v_standard2_thorton_galena_nomad_player_missiles
Vehicle.v_sport1_quadra_sport_r7_player
Vehicle.v_sport1_quadra_sport_r7_mrhands
Vehicle.v_sport1_quadra_sport_r7_netrunner
Vehicle.v_sport1_quadra_sport_r7_player_02
Vehicle.v_sport2_mizutani_shion_nomad_player_missiles
Vehicle.v_sport2_quadra_type66_nomad_player_03
Vehicle.v_sport2_alvarado_hearse_player
Vehicle.v_sport2_alvarado_deleon_player
Vehicle.v_sportbike2_arch_linas_player
Vehicle.v_standard2_archer_quartz_nomad_player_02
Vehicle.v_standard2_mizutani_hozuki_player
Vehicle.v_standard25_thorton_colby_nomad_player_missiles
Vehicle.v_standard25_thorton_colby_pickup_kurtz_player
Vehicle.v_standard25_thorton_merrimac_player
Vehicle.v_standard3_mahir_supron_kurtz_player
Vehicle.v_standard3_makigai_tanishi_player
Vehicle.v_standard3_makigai_tanishi_player_mr_hands
Vehicle.v_standard3_militech_hellhound_player
Vehicle.v_sport2_porsche_911turbo_cabrio_player
Vehicle.v_sportbike1_yaiba_kusanagi_player_02
Vehicle.v_sportbike1_yaiba_kusanagi_player_03
Vehicle.v_sportbike2_arch_player_02
Vehicle.v_sportbike2_arch_player_03
Vehicle.v_sportbike3_brennan_apollo_player_02

Note: There is 1 player ownable vehicle missing from this list.

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