Exports
Client
openMenu()
Opens the lobbymenu.
hasCooldown()
Checks if there is an active cooldown.
Returns:
true/false - True or False
Example:
local cooldown = exports.zrx_lobby:hasCooldown()
if cooldown then
print('yes')
else
print('no')
endgetConfig()
Returns the config.
Returns:
table - Returns the config
Example:
local config = exports.zrx_lobby:getConfig()
print(json.encode(config, { indent = true })Server
hasCooldown(player)
Checks if a player has an active cooldown.
Parameters:
player - number - The player server id
Returns:
false/number - Number is the os.time() timestamp
Example:
local cooldown = exports.zrx_lobby:hasCooldown(1)
if cooldown then
print('yes')
else
print('no')
endgetConfig()
Returns the config.
Returns:
table - Returns the config
Example:
local config = exports.zrx_lobby:getConfig()
print(json.encode(config, { indent = true })Last updated
Was this helpful?