Installation
Elevate your FiveM server's armor customization to new heights with our versatile bulletproof vest configuration script
Step 1
Make sure you have on your server all the scripts written in dependencies
Step 2
Once your purchase is verified, download the resource and add it to the resources of your server. Then add this line of code to your server.cfg
ensure fo4rUtils
ensure Fo4rKevlars
Step 3
Make sure you have the items in your inventory. Example for ox_inventory;
['militar_kevlar'] = {
label = 'Militar Kevlar',
weight = 400,
stack = true,
close = true,
description = nil
},
['policial_kevlar'] = {
label = 'Policial Kevlar',
weight = 350,
stack = true,
close = true,
description = nil
},
Step 4
Configure the script to your liking
Config = {} or Config
Config.RemoveIfDontHaveArmor = true
Config.Labels = {
success = 'You put on a bulletproof vest',
progressbar = 'putting on vest',
}
Config.chalecos = {
{
itemname = "militar_kevlar",
armor = 100,
animation = {anim = 'clothingtie', dict = 'try_tie_positive_a'},
duration = 5000,
male = {
number=2,
texture=3,
},
female = {
number=2,
texture=3,
},
},
{
itemname = "policial_kevlar",
armor = 80,
animation = {anim = 'clothingtie', dict = 'try_tie_positive_a'},
duration = 3000,
male = {
number=2,
texture=1,
},
female = {
number=2,
texture=1,
},
},
}
function progressBar(label, time, cb)
if lib.progressCircle({
duration = time,
position = 'bottom',
label = label,
useWhileDedad = false,
canCancel = true,
disable = {
move = true
},
}) then cb(true) else cb(false) end
end
Step 5
Turn on your server and enjoy
Last updated