Check IsControlJustReleased() every frame

This commit is contained in:
ElPumpo
2018-12-30 21:32:06 +01:00
parent e30207e467
commit bdc9e88535
7 changed files with 8 additions and 8 deletions
+2 -2
View File
@@ -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)
+1 -1
View File
@@ -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!',
}
+1 -1
View File
@@ -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!',
}
+1 -1
View File
@@ -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!',
}
+1 -1
View File
@@ -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!',
}
+1 -1
View File
@@ -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!',
}
+1 -1
View File
@@ -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!',
}