Novel Kevlar v2 offers not only a revision of the code but also new and improved functions. With Novel Kevlar V2, other developers can easily change or configure something. The code is no longer static
Features
Kevlar vests that can be extended as required
A job authorization can be configured for each kevlar
A skin can be configured for each kevlar vest
Skins can be configured for jobs kevlar vests
Automatic saving of the armor level can be set
Kevlar are automatically loaded when connecting
Kevlar is automatically saved when disconnecting
A button can be set to use the Kevlar. When this button is pressed, the best Kevlar vest is automatically put on.
There are now commands for admins
Admin Command: “GiveKevlar” to give yourself or another player armor.
Admin Command: ,GiveKevlarRadius" to give armor to everyone in a certain radius
I put on a kevlar, the animation shows up, but ive got no visible vest.
I put the right vests from the clothesshop into the config, but nothing. Any idea?
Hi are you getting any errors? Sometimes it also helps to turn on the debug to possibly understand what it is you can send a picture or best open a ticket on our Discord? There we can clarify it better
for illenium_appearance try this in client/functions.lua
function SetKevlarSkin(kevlar, job)
local ped = PlayerPedId()
Debug(string.format(“set kevlar string → kevlar: %s job: %s”, kevlar, job))
local kevlarSkin = Config.KevlarSkin[job] or Config.KevlarSkin[kevlar]
local gender = GetPedGender(ped)
if Config.KevlarSkin[kevlar] == nil or Config.Kevlar[kevlar].UseSkin == false then
Debug(string.format(“SetKevlarSkin could be set reason → Config.KevlarSkin[%s]: %s or Config.KevlarSkin[%s].UseSkin: %s”, kevlar, tostring(Config.KevlarSkin[kevlar]), kevlar, tostring(Config.Kevlar[kevlar].UseSkin)))
return
end
TriggerEvent(Config.Events[“getSkin”], function(skinData)
if skinData ~= nil then
if skinData.sex == 0 then
TriggerEvent(‘skinchanger:loadClothes’, skin, Config.KevlarSkin[kevlar].male)
elseif skinData.sex == 1 then
TriggerEvent(‘skinchanger:loadClothes’, skin, Config.KevlarSkin[kevlar].female)
end
end
end)
end
function GetPedGender(ped)
if IsPedMale(ped) then
return 0
end