Check if taxi spawnpoint is blocked

This commit is contained in:
ElPumpo
2018-08-12 18:14:38 +02:00
parent 0c00f1c6ea
commit 2191cc446e
8 changed files with 12 additions and 0 deletions
+5
View File
@@ -166,6 +166,11 @@ function OpenTaxiActionsMenu()
if data.current.value == 'spawn_vehicle' then
if not ESX.Game.IsSpawnPointClear(Config.Zones.VehicleSpawnPoint.Pos, 3.0) then
ESX.ShowNotification(_U('spawnpoint_blocked'))
return
end
if Config.EnableSocietyOwnedVehicles then
local elements = {}