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
Last updated
Was this helpful?