1
0
Fork 0
forked from Simnation/Main
Main/resources/[Developer]/[Nordi]/0r-atmrobbery/modules/bridge/esx/client.lua

16 lines
434 B
Lua
Raw Normal View History

2025-06-07 08:51:21 +02:00
-- Event triggered when a player is loaded
RegisterNetEvent('esx:playerLoaded', function(xPlayer)
client.onPlayerLoad(true)
end)
-- Event triggered when a player logs out
RegisterNetEvent('esx:onPlayerLogout', function(xPlayer)
client.onPlayerLoad(false)
end)
-- Checks if the player is logged in
---@return boolean isLoggedIn
function client.IsPlayerLoaded()
return client.framework.IsPlayerLoaded()
end