Skip to main content

esx:enteredVehicle

Available from this version: 1.9.1

This event is triggered when the player entered the vehicle

Arguments

ArgumentTypeExplanation
vehiclenumber
platestring
seatnumber
displayNamestring
netIDnumber

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)