From bdc9e88535fcc46c7e9de8eb68bffce532fca986 Mon Sep 17 00:00:00 2001 From: ElPumpo Date: Sun, 30 Dec 2018 21:32:06 +0100 Subject: [PATCH] Check IsControlJustReleased() every frame --- client/main.lua | 4 ++-- locales/br.lua | 2 +- locales/en.lua | 2 +- locales/fi.lua | 2 +- locales/fr.lua | 2 +- locales/pl.lua | 2 +- locales/sv.lua | 2 +- 7 files changed, 8 insertions(+), 8 deletions(-) diff --git a/client/main.lua b/client/main.lua index 91dc3fc2..0165fa6d 100644 --- a/client/main.lua +++ b/client/main.lua @@ -998,7 +998,7 @@ end) -- Key Controls Citizen.CreateThread(function() while true do - Citizen.Wait(10) + Citizen.Wait(0) if CurrentAction ~= nil then ESX.ShowHelpNotification(CurrentActionMsg) @@ -1072,7 +1072,7 @@ Citizen.CreateThread(function() end end) -AddEventHandler('esx:onPlayerDeath', function() +AddEventHandler('esx:onPlayerDeath', function(data) IsDead = true end) diff --git a/locales/br.lua b/locales/br.lua index 037aac1e..426ae171 100644 --- a/locales/br.lua +++ b/locales/br.lua @@ -81,5 +81,5 @@ Locales['br'] = { ['you_used_body_kit'] = 'Você usou um ~b~Kit de corpo', ['have_withdrawn'] = 'você retirou ~y~x%s~s~ ~b~%s~s~', ['have_deposited'] = 'você depositou ~y~x%s~s~ ~b~%s~s~', - ['player_cannot_hold'] = 'you do ~r~not~w~ have enough ~y~free space~w~ in your inventory!', + ['player_cannot_hold'] = 'you do ~r~not~s~ have enough ~y~free space~s~ in your inventory!', } diff --git a/locales/en.lua b/locales/en.lua index 67cd091d..45a04246 100644 --- a/locales/en.lua +++ b/locales/en.lua @@ -81,5 +81,5 @@ Locales['en'] = { ['you_used_body_kit'] = 'you used a ~b~Body Kit', ['have_withdrawn'] = 'you have withdrawn ~y~x%s~s~ ~b~%s~s~', ['have_deposited'] = 'you have deposited ~y~x%s~s~ ~b~%s~s~', - ['player_cannot_hold'] = 'you do ~r~not~w~ have enough ~y~free space~w~ in your inventory!', + ['player_cannot_hold'] = 'you do ~r~not~s~ have enough ~y~free space~s~ in your inventory!', } diff --git a/locales/fi.lua b/locales/fi.lua index 390c60d2..eea8bb02 100644 --- a/locales/fi.lua +++ b/locales/fi.lua @@ -81,5 +81,5 @@ Locales['fi'] = { ['you_used_body_kit'] = 'sinä käytit yhden ~b~Korikitin', ['have_withdrawn'] = 'sinä nostit ~y~x%s~s~ ~b~%s~s~', ['have_deposited'] = 'sinä talletit ~y~x%s~s~ ~b~%s~s~', - ['player_cannot_hold'] = 'sinulla ~r~ei ole~w~ tarpeeksi ~y~vapaata tilaa~w~ repussasi!', + ['player_cannot_hold'] = 'sinulla ~r~ei ole~s~ tarpeeksi ~y~vapaata tilaa~s~ repussasi!', } diff --git a/locales/fr.lua b/locales/fr.lua index 61ef8e02..c4dcbf34 100644 --- a/locales/fr.lua +++ b/locales/fr.lua @@ -82,5 +82,5 @@ Locales['fr'] = { ['you_used_body_kit'] = 'Vous avez utilisé un ~b~Kit de carosserie', ['have_withdrawn'] = 'vous avez pris ~y~x%s~s~ ~b~%s~s~', ['have_deposited'] = 'vous avez déposé ~y~x%s~s~ ~b~%s~s~', - ['player_cannot_hold'] = 'you do ~r~not~w~ have enough ~y~free space~w~ in your inventory!', + ['player_cannot_hold'] = 'you do ~r~not~s~ have enough ~y~free space~s~ in your inventory!', } diff --git a/locales/pl.lua b/locales/pl.lua index 2454b9cc..689d8057 100644 --- a/locales/pl.lua +++ b/locales/pl.lua @@ -81,5 +81,5 @@ Locales['pl'] = { ['you_used_body_kit'] = 'użyłeś ~b~częsci blacharskich', ['have_withdrawn'] = 'wyciągnąłeś ~y~x%s~s~ ~b~%s~s~', ['have_deposited'] = 'zdeponowałeś ~y~x%s~s~ ~b~%s~s~', - ['player_cannot_hold'] = '~r~nie masz~w~ wystarczająco ~y~wolnego~w~ miejsca w ekwipunku!', + ['player_cannot_hold'] = '~r~nie masz~s~ wystarczająco ~y~wolnego~s~ miejsca w ekwipunku!', } diff --git a/locales/sv.lua b/locales/sv.lua index 8dc6132e..04403c98 100644 --- a/locales/sv.lua +++ b/locales/sv.lua @@ -81,5 +81,5 @@ Locales['sv'] = { ['you_used_body_kit'] = 'du har använt en ~b~karossverktyg~s~', ['have_withdrawn'] = 'du har tagit ut ~y~x%s~s~ ~b~%s~s~', ['have_deposited'] = 'du har lagrat ~y~x%s~s~ ~b~%s~s~', - ['player_cannot_hold'] = 'du har ~r~inte~w~ tillräckligt med ~y~utrymme~w~ för att hålla det!', + ['player_cannot_hold'] = 'du har ~r~inte~s~ tillräckligt med ~y~utrymme~s~ för att hålla det!', } \ No newline at end of file