1
0
Fork 0
forked from Simnation/Main
Main/resources/[Developer]/[Nordi]/0r-atmrobbery/modules/bridge/qbx/client.lua
2025-06-07 08:51:21 +02:00

13 lines
378 B
Lua

RegisterNetEvent('QBCore:Client:OnPlayerLoaded', function()
client.onPlayerLoad(true)
end)
RegisterNetEvent('QBCore:Client:OnPlayerUnload', function()
client.onPlayerLoad(false)
end)
-- Checks if the player is logged in based on local player state
---@return boolean isLoggedIn
function client.IsPlayerLoaded()
return LocalPlayer.state.isLoggedIn
end