Client
Exports - Clientside
toggleEngine
Toggles the Engine On/Off
Parameters
bypass - boolean - Start/Stop the Engine without a Key needed - Optional
exports.msk_enginetoggle:toggleEngine()
-- Example with Bypass
exports.msk_enginetoggle:toggleEngine(true)toggleLockpick
Starts the Hotwire Feature
exports.msk_enginetoggle:toggleLockpick()GetEngineState
Parameters
vehicle - entity - The Vehicle that you want the Enginestate from
Returns
isEngineOn - boolean - whether the Engine is on or off
local isEngineOn = exports.msk_enginetoggle:GetEngineState(vehicle)
-- You can also use this:
local isEngineOn = Entity(vehicle).state.isEngineOnSetVehicleDamaged
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