From 37ab2cb2b0aff5fa760241fcafb5df479c0854bc Mon Sep 17 00:00:00 2001 From: ElPumpo Date: Tue, 1 May 2018 21:02:54 +0200 Subject: [PATCH] Removed code debug --- client/main.lua | 2 +- locales/br.lua | 2 +- locales/de.lua | 4 ++-- locales/en.lua | 1 - locales/es.lua | 2 +- server/main.lua | 3 +-- 6 files changed, 6 insertions(+), 8 deletions(-) diff --git a/client/main.lua b/client/main.lua index 4e30a3fc..f3ca2bf1 100644 --- a/client/main.lua +++ b/client/main.lua @@ -315,7 +315,7 @@ Citizen.CreateThread(function() AddTextComponentString(CurrentActionMsg) DisplayHelpTextFromStringLabel(0, 0, 1, -1) - if IsControlPressed(0, Keys['E']) and GetLastInputMethod(2) and (GetGameTimer() - GUI.Time) > 300 then + if IsControlPressed(0, Keys['E']) and GetLastInputMethod(2) and (GetGameTimer() - GUI.Time) > 300 then if CurrentAction == 'dispatch' then TriggerServerEvent('esx_phone:stopDispatch', CurrentDispatchRequestId) diff --git a/locales/br.lua b/locales/br.lua index 043754e2..9214fe24 100644 --- a/locales/br.lua +++ b/locales/br.lua @@ -6,7 +6,7 @@ Locales['br'] = { ['message_sent'] = 'mensagem enviada', ['cannot_add_self'] = 'Você não pode se adicionar', ['number_in_contacts'] = 'Este número já está na sua lista de contatos', - ['contact_added'] = 'Contato adicionado', + ['contact_added'] = 'contato adicionado', ['contact_removed'] = 'the contact has been removed!', ['number_not_assigned'] = 'Este número não foi atribuído...', } diff --git a/locales/de.lua b/locales/de.lua index 5f8606f7..425463f3 100644 --- a/locales/de.lua +++ b/locales/de.lua @@ -2,11 +2,11 @@ Locales['de'] = { ['new_message'] = '~b~Neue Nachricht', ['press_take_call'] = ' - Drücke ~INPUT_CONTEXT~ um den Anruf anzunehmen', ['taken_call'] = ' hat den Anruf angenommen', - ['gps_position'] = 'Ziel in GPS eingegeben', + ['gps_position'] = 'ziel in GPS eingegeben', ['message_sent'] = 'nachricht gesendet', ['cannot_add_self'] = 'du kannst dich nicht selbst hinzufügen', ['number_in_contacts'] = 'diese Nummer ist bereits in deinen Kontakten', - ['contact_added'] = 'Kontakt hinzugefügt', + ['contact_added'] = 'kontakt hinzugefügt', ['contact_removed'] = 'the contact has been removed!', ['number_not_assigned'] = 'diese Nummer ist nicht vergeben...', } diff --git a/locales/en.lua b/locales/en.lua index b6d5c8b0..2d6c31ea 100644 --- a/locales/en.lua +++ b/locales/en.lua @@ -6,7 +6,6 @@ Locales['en'] = { ['message_sent'] = 'the message has been sent', ['cannot_add_self'] = 'you can not add yourself', ['number_in_contacts'] = 'this number is already in your contact list', - ['number_in_contacts'] = 'this number is already in your contact list', ['contact_added'] = 'the contact has been added!', ['contact_removed'] = 'the contact has been removed!', ['number_not_assigned'] = 'this number is not assigned to anyone!', diff --git a/locales/es.lua b/locales/es.lua index af889ebf..ad06dff6 100644 --- a/locales/es.lua +++ b/locales/es.lua @@ -8,5 +8,5 @@ Locales['es'] = { ['number_in_contacts'] = 'Este número ya está en tu lista de contactos', ['contact_added'] = 'Contacto añadido', ['contact_removed'] = 'the contact has been removed!', - ['number_not_assigned'] = 'El número no se ha añadido todavía...', + ['number_not_assigned'] = 'el número no se ha añadido todavía...', } diff --git a/server/main.lua b/server/main.lua index 0c9a798b..548823b9 100644 --- a/server/main.lua +++ b/server/main.lua @@ -248,8 +248,7 @@ AddEventHandler('esx_phone:addPlayerContact', function(phoneNumber, contactName) if foundNumber then - -- if phoneNumber == xPlayer.get('phoneNumber') then - if false then + if phoneNumber == xPlayer.get('phoneNumber') then TriggerClientEvent('esx:showNotification', _source, _U('cannot_add_self')) else