Client

getPlayerData

Function to get the player data

function HRLib.bridge.getPlayerData(): table playerData

Return description

  • playerData - The player's data information from the current framework

onPlSpawn

Function to add a callback function to the events' handlers of the different frameworks, supported by the bridge which are being triggered when the player is fully spawned

function HRLib.bridge.onPlSpawn(cb: function)

cb - the callback function to add to the events' handlers

isPlayerLoaded

Function to get status for is the player logged in

function HRLib.bridge.isPlayerLoaded(): boolean

isPlayerSpawned

Value of type boolean which is set to true when the player is spawned

---@type boolean
local isSpawned = HRLib.bridge.isPlayerSpawned

Last updated