General cleanup, added missing locale strings

This commit is contained in:
ElPumpo
2018-07-03 13:05:23 +02:00
parent 4e9c31021d
commit 71c704ed85
12 changed files with 131 additions and 129 deletions
+8 -9
View File
@@ -11,8 +11,6 @@ local Keys = {
}
ESX = nil
local GUI = {}
GUI.Time = 0
local HasAlreadyEnteredMarker = false
local LastZone = nil
local CurrentAction = nil
@@ -173,8 +171,8 @@ function OpenShopMenu()
'pants_2',
'shoes_1',
'shoes_2',
'chain_1',
'chain_2',
'chain_1',
'chain_2',
'helmet_1',
'helmet_2',
'glasses_1',
@@ -228,7 +226,7 @@ end)
Citizen.CreateThread(function()
while true do
Wait(0)
Citizen.Wait(1)
local coords = GetEntityCoords(GetPlayerPed(-1))
@@ -245,7 +243,7 @@ end)
Citizen.CreateThread(function()
while true do
Wait(0)
Citizen.Wait(10)
local coords = GetEntityCoords(GetPlayerPed(-1))
local isInMarker = false
@@ -276,7 +274,7 @@ end)
Citizen.CreateThread(function()
while true do
Citizen.Wait(0)
Citizen.Wait(10)
if CurrentAction ~= nil then
@@ -284,17 +282,18 @@ Citizen.CreateThread(function()
AddTextComponentString(CurrentActionMsg)
DisplayHelpTextFromStringLabel(0, 0, 1, -1)
if IsControlPressed(0, Keys['E']) and (GetGameTimer() - GUI.Time) > 300 then
if IsControlJustReleased(0, Keys['E']) then
if CurrentAction == 'shop_menu' then
OpenShopMenu()
end
CurrentAction = nil
GUI.Time = GetGameTimer()
end
else
Citizen.Wait(500)
end
end