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
  • hasArmour()
  • displayArmour(state)
  • Server
  • hasCooldown(player)

Was this helpful?

Edit on GitHub
  1. Scripts
  2. zrx_armour

Exports

Client

hasArmour()

Checks if there is an active armour.

Returns: true/false - True or False

Example:

local hasArmour = exports.zrx_armour:hasArmour()

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

displayArmour(state)

Enables/Disables the armour vest.

Parameters: state - bool - True or False

Example:

exports.zrx_armour:displayArmour(false)

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

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

Last updated 1 year ago

Was this helpful?