Skip to content

Commit

Permalink
fix(client/events): set isloggedin state only once (#481)
Browse files Browse the repository at this point in the history
  • Loading branch information
solareon committed Jun 6, 2024
1 parent fe0ce50 commit feaf02f
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion client/events.lua
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
-- Player load and unload handling
RegisterNetEvent('QBCore:Client:OnPlayerLoaded', function()
ShutdownLoadingScreenNui()
LocalPlayer.state:set('isLoggedIn', true, false)
QBX.IsLoggedIn = true

if GlobalState.PVPEnabled then
Expand Down

0 comments on commit feaf02f

Please sign in to comment.