From 2191cc446eafd78e519821c0d76b28c51f4cce7f Mon Sep 17 00:00:00 2001 From: ElPumpo Date: Sun, 12 Aug 2018 18:14:38 +0200 Subject: [PATCH] Check if taxi spawnpoint is blocked --- client/main.lua | 5 +++++ locales/br.lua | 1 + locales/de.lua | 1 + locales/en.lua | 1 + locales/fi.lua | 1 + locales/fr.lua | 1 + locales/pl.lua | 1 + locales/sv.lua | 1 + 8 files changed, 12 insertions(+) diff --git a/client/main.lua b/client/main.lua index 2b339ed5..9b864b72 100644 --- a/client/main.lua +++ b/client/main.lua @@ -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 = {} diff --git a/locales/br.lua b/locales/br.lua index 90096a02..cc709de2 100644 --- a/locales/br.lua +++ b/locales/br.lua @@ -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~', diff --git a/locales/de.lua b/locales/de.lua index 0c671c0f..78c09f30 100644 --- a/locales/de.lua +++ b/locales/de.lua @@ -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~', diff --git a/locales/en.lua b/locales/en.lua index 31d41c9e..7980d803 100644 --- a/locales/en.lua +++ b/locales/en.lua @@ -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~', diff --git a/locales/fi.lua b/locales/fi.lua index 1559ba1e..30c0c4c3 100644 --- a/locales/fi.lua +++ b/locales/fi.lua @@ -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~', diff --git a/locales/fr.lua b/locales/fr.lua index c031c579..0038ec6a 100644 --- a/locales/fr.lua +++ b/locales/fr.lua @@ -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~', diff --git a/locales/pl.lua b/locales/pl.lua index 5333044a..0884c76f 100644 --- a/locales/pl.lua +++ b/locales/pl.lua @@ -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~', diff --git a/locales/sv.lua b/locales/sv.lua index a627de0c..9c207d21 100644 --- a/locales/sv.lua +++ b/locales/sv.lua @@ -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~',