feat Framework.GetIsPlayerLoaded, locale tweaks

This commit is contained in:
MrNewb committed 2025-07-10 13:50:47 -04:00
1 parent 58ab40d14e
commit a280606c3d
32 files changed
+526 -259

No files matched your search

+7
View File
@@ -14,6 +14,13 @@ Framework.GetFrameworkName = function()
return 'qb-core'
end
---This will return true if the player is loaded, false otherwise.
---This could be useful in scripts that rely on player loaded events and offer a debug mode to hit this function.
---@return boolean
Framework.GetIsPlayerLoaded = function()
return LocalPlayer.state.isLoggedIn or false
end
---This will return a table of the player data, this will be in the framework format.
---This is mainly for internal bridge use and should be avoided.
---@return table