đSimVehicle
General game-vehicle, properties & functions are derived from SimObject.
Last updated
General game-vehicle, properties & functions are derived from SimObject.
Last updated
Name | Type | Description |
---|---|---|
SimVehicle.Create(model: Hash, coords: Vector3, rotation: Vector3)
: SimVehicle
Argument | Type | Description |
---|---|---|
Returns SimVehicle object when successfully created. Note: by default vehicle doors are locked!
SimVehicle.Get(object: SimObject)
: SimVehicle
Argument | Type | Description |
---|---|---|
This will cast SimObject to SimVehicle use this only if you know what you're doing!
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.
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.
SimVehicle.GetPrimaryColor()
: Color
Returns Primary Color of vehicle.
SimVehicle.SetPrimaryColor(color: Color)
Sets new Primary Color of vehicle.
SimVehicle.GetSecondaryColor()
: Color
Returns Secondary Color of vehicle.
SimVehicle.SetSecondaryColor(color: Color)
Sets new Secondary Color of Vehicle.
SimVehicle.GetShaderValue(index: integer)
: float
Returns Value of shader.
SimVehicle.SetShaderValue(index: integer, value: float)
Sets new Shader value.
Argument | Type | Description |
---|---|---|
Argument | Type | Description |
---|---|---|
Argument | Type | Description |
---|---|---|
Argument | Type | Description |
---|---|---|
Argument | Type | Description |
---|---|---|
EngineDamage
float
(0.0 to 1.0)
DoorsLocked
boolean
-
SeatCount
integer (Read Only)
-
model
Hash
coords
Vector3
Position of new Vehicle
rotation
Vector3
Rotation of new Vehicle
object
SimObject
Valid SimObject
index
integer
(0 to [SeatCount - 1])
color
Color
Color object
color
Color
Color object
index
integer
(0 to 5)
index
integer
(0 to 5)
value
float
-