Client
Events
Share State Event
AddEventHandler("ns_enginesystem:toggleEngine", function(vehicle, state)
-- Your Code
print(state)
end)
Exports
Start Engine
With that Export you can Start the Engine. Is the Fuel false then will the motor not start.
Parameters: Only Vehicle
exports['ns_enginesystem']:StartEngine(vehicle)
Stop Engine
With that Export you can Stop the Engine.
Parameters: Only Vehicle
exports['ns_enginesystem']:StopEngine(vehicle)
Toggle Engine
With that Export you can Trigger the export like Hotkey or Command.
Parameters: Only Vehicle
exports['ns_enginesystem']:ToggleEngine(vehicle)
Get Engine State
With that you can Check the Current Engine State.
Parameters: Only Vehicle
Return Value: true / false
local state = exports['ns_enginesystem']:GetEngineState(vehicle)
Last updated