ESX.Game.IsVehicleEmpty¶
ESX.Game.IsVehicleEmpty(vehicle)
Returns A bool for if the Vehicle has no players inside.
ESX.Game.IsVehicleEmpty Example¶
local vehicle = ESX.Game.GetVehicleInDirection()
if ESX.Game.IsVehicleEmpty(vehicle) then
ESX.ShowNotification('Vehicle Is empty')
end