[Free/OpenSource] Novel_KevlarV2 | Auto-Save and Auto-Load | Dynamics kevlars



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 :palm_tree:

  • 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

GitHub Download
Tebex for Keymaster Version (OpenSource)
Documentation

Code is accessible Yes
Subscription-based No
Lines (approximately) 390
Requirements ESX/MySQL-Async or OxMySQL
Support Yes
10 Likes

Very nice and clean stuff thx for helping to this paid community :slight_smile:

and also if i see correct you can create alot of version kevlar with different texture :slight_smile:

1 Like

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 :slight_smile:

1 Like

I use illenium_appearance, may that couse the problem?

Yes i hink, you may have to adjust the triggers

Wow very nice release, thank you.

I have one litte thing:

  • If I’m not a police officer, I can still use the police kevlar with the button
  • it will be nice to have a way to disable the vest skinchange function in the config (true/false)

@aRii0 would it possible to add this function for future?

@porterslug

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

return 1

end

Actually you can disable the Kevlar skin in the config. Change the value ‘’‘lua UseSkin = true’‘’ in the Kevlar table. Is this what you mean?

Sure, I read the documentation from illenium_appearance and try to add this feature. When I have added this I will tag you, right?

2 Likes

That would be great, thank you!

me to if you can pls :slight_smile:

I have this error in the Server Console:

is this script ESX or QBCore?

@aRii0 can you help with this?

Hi, esx :slight_smile:

Shure, join our discord and open a ticket. We can look on your problem

Are you using the multichar system?

yes i use a multichar system

I will release a fix version the next days, we now what the problem is :slight_smile:

1 Like