Novel_Kevlar-vest | Armour autosave and load | Four types of Kevlar-Vests

Novel Kevlar-Vest is a Kevlar-Vest script with four types of Vests for almost every purpose,

  • small Kevlar,

  • medium Kevlar,

  • full Kevlar,

  • police Kevlar,

The Kevlar-Vest script has an auto save-feature, which time can of course be freely configured. When the player join’s the script will automatically load his last worn Kevlar-Vest. You can configure custom keybindings as well if you want to. Also you have the choice to configure everything else in the script-Code. The script is open source!

:gear: Functions:

:hammer_and_pick: You can configure everything

:hammer_and_pick: Autosave-feature, saves the last worn Kevlar-West from all Players

:hammer_and_pick: Autoload-feature, when the player join’s he gets his Kevlar-Vest right back

:hammer_and_pick: De/activate keybind

:hammer_and_pick: Four types of Kevlar-Vests

:hammer_and_pick: Change the armour Values each Kevlar-Vest

:hammer_and_pick: Change the skin for the armour

:hammer_and_pick: Get the highest kevlar if your press the keybind

:hammer_and_pick: Get the highest type of Kevlar that you have in your inventory by pressing a specific custom Key bind you’ve set

[:heavy_check_mark:] ESX

[:heavy_check_mark:] Open Source

[:heavy_check_mark:] Performance | Client: 0.00 - 0.01 | Server: 0.00 - 0.01

[:heavy_check_mark:] Support

:vhs: Showcase:

GitHub:

6 Likes

First, would be nice if you have released that a few days ago where i had troubles within my other vest script :confused:

1 Like

I tried it but the FiveM API gave me problems first and then the forum, otherwise it would have come Tuesday :smiley:

image
i keep getting this error

I have fixed it:

ALTER TABLE users
ADD armour int NOT NULL DEFAULT(0);

INSERT INTO items (name, label) VALUES
(‘kevlar’, ‘Kevlar’),
(‘kevlar_m’, ‘kevlar_m’),
(‘kevlar_s’, ‘kevlar_s’),
(‘kevlar_p’, ‘kevlar_p’)
;

I also uploaded it directly to github. Thanks :slight_smile:

thankyou :slight_smile:

1 Like

image
also im unable to use the vest?

the script must be started with the server. Its a normal ESX event. :slight_smile:

yeah its fine sorry i just made a little mistake aha

1 Like

no problem, you can leave me feedback how you find it and what should be done differently :slight_smile:

Nice script. Its possible to add a key for medikit too? So you just need this script for healing/vests.

Regards

1 Like

Looks cool. I’ll check it out when I get home. :yum:

Nice to see another free resource.

1 Like

Hello! I have a problem with this script it adds the armor to the player but… it wont save it any ideas?

Please have a look in the Server Console and set debug in config to true.If there is an error when saving then please send me a screenshot or update your server to version 4478.

[script:Novel-Kevlar] Start autosave!
[script:Novel-Kevlar] ERROR: the ped from ID:1 is 0. The kevlar from the player cant saved!
[script:Novel-Kevlar] Autosave successfully!
[script:Novel-Kevlar] armour saved from id: 1 armour: 0

(i used full kevlar and still says armour 0 even though in-game there is 100% armour)

What is your server version, you can find it in txadmin at the bottem right. Please look in the readme there is a info.

v4.7.0 atop FXServer 4901

Please downgrade your server to 4478, higher versions have a bug in the API where by the ped = 0 and the kevlar cannot be saved.

thanks for the help will do it any update you

Hello! i changed to 4478 but still is the same won’t save the armour to it