copy Copy chevron-down
๐๏ธ Game Classes๐ SimVehicleGeneral game-vehicle, properties & functions are derived from SimObject.
Static Functions:
SimVehicle.Create(model: Hash, coords: Vector3, rotation: Vector3): SimVehicle
Returns SimVehicle object when successfully created. Note: by default vehicle doors are locked!
SimVehicle.Get(object: SimObject): SimVehicle
This will cast SimObject to SimVehicle use this only if you know what you're doing!
Occupant Functions:
SimVehicle.GetDriver(): SimCharacter
Returns SimCharacter object if there is driver occupant in current vehicle otherwise null.
SimVehicle.GetPassenger(index: integer): SimCharacter
Returns SimCharacter object if there is passenger occupant in current vehicle otherwise null.
Color Functions:
circle-exclamation
This is modification implement inside Script Modification that is hooked around Illusion BlockState Engine render and using it might be unstable and it will not work on all vehicles.
.GetPrimaryColor
SimVehicle.GetPrimaryColor(): Color
Returns Primary Color of vehicle.
.SetPrimaryColor
SimVehicle.SetPrimaryColor(color: Color)
Sets new Primary Color of vehicle.
.GetSecondaryColor
SimVehicle.GetSecondaryColor(): Color
Returns Secondary Color of vehicle.
.SetSecondaryColor
SimVehicle.SetSecondaryColor(color: Color)
Sets new Secondary Color of Vehicle.
.GetShaderValue
SimVehicle.GetShaderValue(index: integer): float
Returns Value of shader.
.SetShaderValue
SimVehicle.SetShaderValue(index: integer, value: float)
Sets new Shader value.