Client

Event Handler - Clientside

Entering Vehicle

Will be called when entering a vehicle

Returns vehicle - entity - The vehicle the player is entering plate - string - Plate of the vehicle seat - number - Steat of the vehicle the player is entering netId - number - Vehicles NetworkId isEngineOn - boolean - whether the engine is on or off isDamaged - boolean - whether the vehicle is damaged or not

AddEventHandler('msk_enginetoggle:enteringVehicle', function(vehicle, plate, seat, netId, isEngineOn, isDamaged)
    -- Do something here
end)

Entered Vehicle

Will be called when entered a vehicle

Returns vehicle - entity - The vehicle the player has entered plate - string - Plate of the vehicle seat - number - Steat of the vehicle the player has entered netId - number - Vehicles NetworkId isEngineOn - boolean - whether the engine is on or off isDamaged - boolean - whether the vehicle is damaged or not

AddEventHandler('msk_enginetoggle:enteredVehicle', function(vehicle, plate, seat, netId, isEngineOn, isDamaged)
    -- Do something here
end)

Exited Vehicle

Will be called when exited a vehicle

Returns vehicle - entity - The vehicle the player has exited plate - string - Plate of the vehicle seat - number - Steat of the vehicle the player has exited netId - number - Vehicles NetworkId isEngineOn - boolean - whether the engine is on or off isDamaged - boolean - whether the vehicle is damaged or not

AddEventHandler('msk_enginetoggle:exitedVehicle', function(vehicle, plate, seat, netId, isEngineOn, isDamaged)
    -- Do something here
end)

Last updated