baseevents:leftVehicle
vehicle currentVehicle, int currentSeat, string vehicleDisplayName, int vehicleNetId
NetToVeh()
to get the vehicle client side.Server.lua
RegisterNetEvent("baseevents:leftVehicle", function(currentVehicle, currentSeat, vehicleDisplayName, vehicleNetId)
TriggerClientEvent("example:leftVeh", -1, vehicleNetId)
end)
Client.lua
RegisterNetEvent("example:leftVeh", function(NetId)
local veh = NetToVeh(NetId)
print("Somebody left the vehicle: " .. veh)
end)