From ba6f58dd2756007a40b05d576afb9ac3664929bb Mon Sep 17 00:00:00 2001 From: Dolbajoba <83533764+Getpwnedbydolbajoba@users.noreply.github.com> Date: Sat, 29 Oct 2022 22:13:12 +0200 Subject: [PATCH] some changes --- client/main.lua | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/client/main.lua b/client/main.lua index 9519d77..adc8893 100644 --- a/client/main.lua +++ b/client/main.lua @@ -5,9 +5,9 @@ Basket = {} --[[ Gets the ESX library ]]-- ESX = nil -Citizen.CreateThread(function() +CreateThread(function() while ESX == nil do - Citizen.Wait(10) + Citizen.Wait(1) TriggerEvent("esx:getSharedObject", function(obj) ESX = obj @@ -52,7 +52,7 @@ DeleteCashier = function() end end -Citizen.CreateThread(function() +CreateThread(function() local defaultHash = 416176080 for i=1, #Config.Locations do local cashier = Config.Locations[i]["cashier"] @@ -72,7 +72,7 @@ Citizen.CreateThread(function() end) --[[ Creates cashiers and blips ]]-- -Citizen.CreateThread(function() +CreateThread(function() for i=1, #Config.Locations do local blip = Config.Locations[i]["blip"] @@ -112,7 +112,7 @@ end --[[ Deletes the peds when the resource stops ]]-- AddEventHandler('onResourceStop', function(resourceName) if resourceName == GetCurrentResourceName() then - TriggerServerEvent('esx:clientLog', "[99kr-shops]: Deleting peds...") + print("[99kr-shops]: Deleting peds...") DeleteCashier() end end)