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
  • activeBlips()
  • hasCooldown()
  • Server
  • activeBlips()
  • hasCooldown(player)

Was this helpful?

Edit on GitHub
  1. Scripts
  2. zrx_restrictedzone

Exports

Client

activeBlips()

Returns all active blips.

Returns: table - All active blips

Example:

local blips = exports.zrx_restrictedzone:activeBlips()

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

hasCooldown()

Checks if there is an active cooldown.

Returns: true/false - True or False

Example:

local cooldown = exports.zrx_restrictedzone:hasCooldown()

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

Server

activeBlips()

Returns all active blips.

Returns: table - All active blips

Example:

local blips = exports.zrx_restrictedzone:activeBlips()

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

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_restrictedzone:hasCooldown(1)

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

Last updated 1 year ago

Was this helpful?