mirror of
https://github.com/esx-framework/esx_core.git
synced 2026-09-03 03:38:50 +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 = {}
|
||||
|
||||
@@ -17,6 +17,7 @@ Locales['br'] = {
|
||||
['close_to_client'] = 'Você está perto do passageiro, aproximisse dele',
|
||||
['return_to_veh'] = 'Volte para o seu veículo para continuar a missão',
|
||||
['only_taxi'] = 'Você só pode guardar taxis.',
|
||||
['spawnpoint_blocked'] = 'there is a vehicle blocking the spawnpoint!',
|
||||
['must_in_taxi'] = 'Você deve estar em um táxi para começar a missão',
|
||||
['must_in_vehicle'] = 'Você deve estar em um veículo para começar a missão',
|
||||
['have_earned'] = 'Você ganhou ~g~$%s~s~',
|
||||
|
||||
@@ -17,6 +17,7 @@ Locales['de'] = {
|
||||
['close_to_client'] = 'du bist nahe an dem Passagier, du musst noch näher ran',
|
||||
['return_to_veh'] = 'bitte kehre zu deinem Fahezeug zurück umd die Mission fortzuführen',
|
||||
['only_taxi'] = 'Du kannst nur Taxis parken.',
|
||||
['spawnpoint_blocked'] = 'there is a vehicle blocking the spawnpoint!',
|
||||
['must_in_taxi'] = 'Du musst in einem Taxis sein umd die Mission starten zu können',
|
||||
['must_in_vehicle'] = 'Du musst in einem Fahrzeug sein um die Mission starten zu können',
|
||||
['have_earned'] = 'verdient ~g~$%s~s~',
|
||||
|
||||
@@ -17,6 +17,7 @@ Locales['en'] = {
|
||||
['close_to_client'] = 'you are too far from the client, get close to them',
|
||||
['return_to_veh'] = 'please return to your vehicle to continue the mission',
|
||||
['only_taxi'] = 'you can only store taxis.',
|
||||
['spawnpoint_blocked'] = 'there is a vehicle blocking the spawnpoint!',
|
||||
['must_in_taxi'] = 'you must be in a taxi to start the mission',
|
||||
['must_in_vehicle'] = 'you must be in a vehicle to begin the mission',
|
||||
['have_earned'] = 'you have earned ~g~$%s~s~',
|
||||
|
||||
@@ -17,6 +17,7 @@ Locales['fi'] = {
|
||||
['close_to_client'] = 'Olet asiakkaan lähellä, mene lähemmäksi',
|
||||
['return_to_veh'] = 'Mene takaisin ajoneuvoon, jatkaaksesi töitä',
|
||||
['only_taxi'] = 'Voit vain tallettaa taxeja',
|
||||
['spawnpoint_blocked'] = 'there is a vehicle blocking the spawnpoint!',
|
||||
['must_in_taxi'] = 'Sinun pitää olla taxissa että voit alottaa työn',
|
||||
['must_in_vehicle'] = 'Sinun pitää olla ajoneuvossa että voit alottaa työn',
|
||||
['have_earned'] = 'Sinä tienasit ~g~€%s~s~',
|
||||
|
||||
@@ -17,6 +17,7 @@ Locales['fr'] = {
|
||||
['close_to_client'] = 'vous êtes à proximité du client, approchez-vous de lui',
|
||||
['return_to_veh'] = 'veuillez remonter dans votre véhicule pour continuer la mission',
|
||||
['only_taxi'] = 'vous ne pouvez ranger que les taxi',
|
||||
['spawnpoint_blocked'] = 'there is a vehicle blocking the spawnpoint!',
|
||||
['must_in_taxi'] = 'vous devez être dans un taxi pour commencer la mission',
|
||||
['must_in_vehicle'] = 'vous devez être dans un véhicule pour commencer la mission',
|
||||
['have_earned'] = 'vous avez gagné ~g~$%s~s~',
|
||||
|
||||
@@ -17,6 +17,7 @@ Locales['pl'] = {
|
||||
['close_to_client'] = 'jesteś blisko klienta, podjedź do niego bliżej',
|
||||
['return_to_veh'] = 'proszę wróć do swojego pojazdu aby kontynuować misję',
|
||||
['only_taxi'] = 'możesz przechowywać tylko taksówki.',
|
||||
['spawnpoint_blocked'] = 'there is a vehicle blocking the spawnpoint!',
|
||||
['must_in_taxi'] = 'musisz być w taksówce aby rozpocząć misję',
|
||||
['must_in_vehicle'] = 'musisz być w pojeździe aby rozpocząć misję',
|
||||
['have_earned'] = 'zarobiłeś ~g~$%s~s~',
|
||||
|
||||
@@ -17,6 +17,7 @@ Locales['sv'] = {
|
||||
['close_to_client'] = 'åk närmare din kund!',
|
||||
['return_to_veh'] = 'vänligen återvänd till ditt fordon och återuppta körningen.',
|
||||
['only_taxi'] = 'du kan endast lagra ~y~taxi fordon~s~ här..',
|
||||
['spawnpoint_blocked'] = 'det är ett fordon som blockerar spawnpointen!',
|
||||
['must_in_taxi'] = 'du måste vara i en ~y~taxi~s~ för att starta uppdraget.',
|
||||
['must_in_vehicle'] = 'du måste vara i ett ~b~fordon~s~ för att starta uppdraget.',
|
||||
['have_earned'] = 'du har tjärnat ~g~%s SEK~s~',
|
||||
|
||||
Reference in New Issue
Block a user