Exports

Client

openMenu()

Opens the personalmenu.

Example:

exports.zrx_personalmenu:openMenu()

hasCooldown()

Checks if there is an active cooldown.

Returns: true/false - True or False

Example:

local cooldown = exports.zrx_personalmenu:hasCooldown()

if cooldown then
    print('yes')
else
    print('no')
end

getConfig()

Returns the config.

Returns: table - Returns the config

Example:

local config = exports.zrx_personalmenu: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_personalmenu: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_personalmenu:getConfig()

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

Last updated