zRxnx Scripts
  • Landing page
  • Dependency
    • zrx_utility
      • Exports
      • Client
      • Server
  • Scripts
    • zrx_carlock
      • Configuration
      • Exports
    • zrx_rental
      • Configuration
      • Exports
    • zrx_personalmenu
      • Configuration
      • Exports
    • zrx_restrictedzone
      • Configuration
      • Exports
    • zrx_lobby
      • Configuration
      • Exports
    • zrx_armour
      • Configuration
      • Exports
    • zrx_uniqueid
      • Configuration
      • Exports
    • zrx_blackmarket
      • Configuration
      • Exports
    • zrx_panicbutton
      • Configuration
      • Exports
    • zrx_repairkit
      • Configuration
      • Exports
Powered by GitBook
On this page
  • Client
  • openMenu()
  • hasCooldown()
  • getConfig()
  • Server
  • hasCooldown(player)
  • getConfig()

Was this helpful?

Edit on GitHub
  1. Scripts
  2. zrx_lobby

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')
end

getConfig()

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')
end

getConfig()

Returns the config.

Returns: table - Returns the config

Example:

local config = exports.zrx_lobby:getConfig()

print(json.encode(config, { indent = true })
PreviousConfigurationNextzrx_armour

Last updated 1 year ago

Was this helpful?