mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-09-04 08:13:21 +00:00
Check if taxi spawnpoint is blocked
This commit is contained in:
@@ -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 = {}
|
||||
|
||||
Reference in New Issue
Block a user