[FREE] [ESX] [ZRX] Armour

zrx_armour

https://docs.zrxnx.at

ZRX Scripts


zRxnx’s Armour System

This is an advanced armour system for fivem

About

Features

  • Item based
  • Save armour after leave
  • Remove vest after no armour
  • Force vest while armour
  • Allowed Jobs/Vehicle
  • Highly configurable
  • Synced between all players
  • Protected Events
  • Discord log with many information
  • Update checker
  • 0.0 ms on idle
  • 0.0 ms while in use

Exports

  • hasArmour (client)
  • hasCooldown (server)

Requirements

  • zrx_utility (latest)
  • ox_lib (latest)
  • oxmysql (latest)

Preview

Video

Discord Log

Installation

  • Download script from Releases
  • Put script in your resources directory
  • Add ensure zrx_armour in your server.cfg

Download


Showcase

Code is accessible Yes
Subscription-based No
Lines (approximately) 541
Requirements See above
Support Partly
4 Likes

any preview?

Which preview do you need?

how the script works yk

I will do a video preview for all my scripts soon

Added showcase: https://youtu.be/NCtX13BLqD8?si=aPovMPjGkHzUyZQV

I get the following error using your script:

[   script:zrx_armour] SCRIPT ERROR: @zrx_armour/server/functions.lua:28: attempt to index a nil value
[   script:zrx_armour] > GetPlayerData (@zrx_armour/server/functions.lua:28)
[   script:zrx_armour] > fn (@zrx_armour/server/server.lua:70)
[   script:zrx_armour] > rawQuery (@oxmysql/dist/build.js:25047)
[   script:zrx_armour] > runMicrotasks (<anonymous>:0)
[   script:zrx_armour] > processTicksAndRejections (node:internal/process/task_queues:96)

Im using the latest ESX Version.

When does this occur?

As soon as I start the script

create a issue on github

Fix is pushed

Fix did work - great Job.

is there a possibility that you can take off the vest via the clothing removal script without losing the armor and then put it on again?

I will add a export.
I will also implement it as default in my personalmenu script.

Would be good if you open a issue on the armour repo.

1 Like

Hello @zRxnx i use your script so i found maybe a bug when you use a armor with out you are in allow list of job then you get armor and do not remove the item from the inventory

Will look over i tmr

Yo I get this error when i try to put on the armour :
^1SCRIPT ERROR: @zrx_armour/client/functions.lua:4: attempt to index a nil value (local ‘data’)^7
^3> UseArmour^7 (^5@zrx_armour/client/functions.lua^7:4)
^3> handler^7 (^5@zrx_armour/client/client.lua^7:5)

Also wrong forum but the latest zrx_utility is saying its the 2.4.0 version instead of the 2.5.0