zRxnx
September 28, 2023, 3:52pm
1
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
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
zRxnx
September 28, 2023, 4:41pm
3
Which preview do you need?
zRxnx
September 29, 2023, 10:58am
5
I will do a video preview for all my scripts soon
zRxnx
September 30, 2023, 2:01pm
6
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.
As soon as I start the script
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?
zRxnx
October 20, 2023, 9:05pm
14
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
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