Client
Exports - Clientside
toggleEngine
Toggles the Engine On/Off
Parameters
bypass - boolean
- Start/Stop the Engine without a Key needed - Optional
toggleLockpick
Starts the Hotwire Feature
GetEngineState
Parameters
vehicle - entity
- The Vehicle that you want the Enginestate from
Returns
isEngineOn - boolean
- whether the Engine is on or off
SetVehicleDamaged
With this you can set the vehicle damaged so that you can't start the engine. If a player is driving this specific vehicle or the engine is on, the engine turns off automatically.
Parameters
vehicle - entity
- The Vehicle that you want to set the Damage State
state - boolean
- Set vehicle damaged state
GetVehicleDamaged
With this you can get the current vehicle damaged state
Parameters
vehicle - entity
- The Vehicle that you want to get the Damage State from
Returns
isVehicleDamaged - boolean
- whether the vehicle is damaged or not
SetSteeringAngle
With this you can set the Steering Angle of the given vehicle.
Parameters
vehicle - entity
- The Vehicle that you want to set the Steering Angle
angle - float
- Set vehicle steering angle
GetSteeringAngle
With this you can get the current vehicles steering angle
Parameters
vehicle - entity
- The Vehicle that you want to get the Steering Angle from
Returns
steeringAngle - float
- Steering Angle
Last updated