Skip to content
This repository was archived by the owner on Aug 26, 2023. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions client/main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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"]
Expand All @@ -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"]

Expand Down Expand Up @@ -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)