Skip to main content

esx:enteringVehicle

Available from this version: 1.9.1

This event is triggered when the player entering the vehicle

Arguments

ArgumentTypeExplanation
vehiclenumber
platestring
seatnumber
netIDnumber

Example Client-Side Usage

AddEventHandler('esx:enteringVehicle', function(vehicle, plate, seat, netId)
print('esx:enteringVehicle', 'vehicle', vehicle, 'plate', plate, 'seat', seat, 'netId', netId)
end)

Example Server-Side Usage

RegisterNetEvent('esx:enteringVehicle', function(plate, seat, netId)
print('esx:enteringVehicle', 'source', source, 'plate', plate, 'seat', seat, 'netId', netId)
end)