From 07b2107898fcfb8b664eff134539aac7afed7ff1 Mon Sep 17 00:00:00 2001 From: Atikur Rahaman Santo <55808925+ARSSANTO@users.noreply.github.com> Date: Fri, 26 Nov 2021 19:37:53 +0600 Subject: [PATCH] is logged in --- client/loops.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/client/loops.lua b/client/loops.lua index 94bf46a..ad79218 100644 --- a/client/loops.lua +++ b/client/loops.lua @@ -1,7 +1,7 @@ CreateThread(function() while true do Wait(0) - if LocalPlayer.state['isLoggedIn'] then + if LocalPlayer.state.isLoggedIn then Wait((1000 * 60) * QBCore.Config.UpdateInterval) TriggerServerEvent('QBCore:UpdatePlayer') end @@ -11,7 +11,7 @@ end) CreateThread(function() while true do Wait(QBCore.Config.StatusInterval) - if LocalPlayer.state['isLoggedIn'] then + if LocalPlayer.state.isLoggedIn then if QBCore.Functions.GetPlayerData().metadata['hunger'] <= 0 or QBCore.Functions.GetPlayerData().metadata['thirst'] <= 0 then local ped = PlayerPedId() @@ -20,4 +20,4 @@ CreateThread(function() end end end -end) \ No newline at end of file +end)