ESX.Game.GetVehicleInDirection.md

1
ESX.Game.GetVehicleInDirection()

This function gets the closest vehicle in the player's direction within 5 units, utilizes ray-casts.

ESX.Game.GetVehicleInDirection Exemplo

1
2
3
4
5
local vehicle = ESX.Game.GetVehicleInDirection()

if DoesEntityExist(vehicle) then
    ESX.ShowNotification('yep there is a vehicle here!')
end