ESX.Game.GetVehicleInDirection.md

1
ESX.Game.GetVehicleInDirection()

该函数获取在玩家5个单位内载具的方向,并使用射线投射

ESX.Game.GetVehicleInDirection 示例

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

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