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
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
},
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