esx:enteredVehicle
Available from this version: 1.9.1
This event is triggered when the player entered the vehicle
Arguments
Argument | Type | Explanation |
---|---|---|
vehicle | number | |
plate | string | |
seat | number | |
displayName | string | |
netID | number |
Example Client-Side Usage
AddEventHandler('esx:enteredVehicle', function(vehicle, plate, seat, displayName, netId)
print('esx:enteredVehicle', 'vehicle', vehicle, 'plate', plate, 'seat', seat, 'displayName', displayName, 'netId', netId)
end)
Example Server-Side Usage
RegisterNetEvent('esx:enteredVehicle', function(plate, seat, displayName, netId)
print('esx:enteredVehicle', 'source', source, 'plate', plate, 'seat', seat, 'displayName', displayName, 'netId', netId)
end)