diff --git a/client/loops.lua b/client/loops.lua index b4629a7..669a00e 100644 --- a/client/loops.lua +++ b/client/loops.lua @@ -1,6 +1,6 @@ CreateThread(function() while true do - local sleep = 0 + local sleep = 1000 if LocalPlayer.state.isLoggedIn then sleep = (1000 * 60) * QBCore.Config.UpdateInterval TriggerServerEvent('QBCore:UpdatePlayer') diff --git a/server/functions.lua b/server/functions.lua index 2f9966b..47a69c3 100644 --- a/server/functions.lua +++ b/server/functions.lua @@ -537,11 +537,11 @@ function QBCore.Functions.Kick(source, reason, setKickReason, deferrals) if GetPlayerPing(source) >= 0 then break end - Wait(100) CreateThread(function() DropPlayer(source, reason) end) end + Wait(100) end Wait(5000) end