atlantis_kevlar
atlantis_kevlar is a Kevlar armour system for FiveM developed on top of ESX
Important
- You are not allowed to modify the resource name
- If you want to contribute (like translation, optimizations, ecc…) you can make a pull request or open a new issue
Features
- Easy to use
- Easy to configure
- Change armour values
- Easy to implement with other script
Links & Support
- Actually none for now, just github
Preview
If the preview doesn’t work, click me!
Download
Installation
- Read the GitHub description
- Download Master or Release & Extract the .zip or Open the .zip.
- Edit the
config.lua if you want to change names or armour values.
- Import the
sql file, if included.
- Add
ensure atlantis_kevlar to your server.cfg.
- You’re set!
- Do not change the name or it will not work.
Issues
- The armour spawned by the skinchanger, doesn’t come off if the armour gets to 0
4 Likes
At the code level is made pretty bad, and is only in italian, which isn’t good at all.
But it is quite nice as an idea
1 Like
Come lo aggiungo al menu per Smontarlo?
Yep, the code is not that good but I’ll improve it.
I’ve already some ideas.
Utilizzi il krz_personalmenu?
sisi uguale a quello del video
appena torno a casa condivido la soluzione
1 Like
Ok aspetto una tua risposta
Ok so for everyone that is using krz_personalmenu you’ll need to open the client/main.lua file.
Go around line 78 and copy and paste this line of code:
RMenu.Add('personal', 'components', RageUI.CreateSubMenu(RMenu.Get('rageui', 'personal'), 'Smonta componenti', 'Smonta componenti', 0, 0))
After you’ve copied this line, go around line 1078-1080 and copy & paste this code:
if RageUI.Visible(RMenu.Get('personal', 'components')) then
RenderComponentsMenu()
end
Then last, but not least, step, go everywhere you want, outside of every function, and copy and paste this function:
function RenderComponentsMenu()
local isArmored = false
local playerArmour = GetPedArmour(GetPlayerPed(-1))
if playerArmour > 0 then
isArmored = true
end
RageUI.DrawContent({header = true, instructionalButton = true}, function()
if isArmored then
RageUI.Button('Smonta corazza (' .. playerArmour .. ')', "", {}, true, function(Hovered, Active, Selected)
if (Selected) then
TriggerServerEvent('atlantis_kevlar:armourRemove', playerArmour)
RageUI.CloseAll()
end
end)
end
end)
end
After you’ve done that, restart the menu and you’re ready to go!
Non riesco a inserirlo tra questo che ho già:
function ComponentiMenu()
RageUI.DrawContent({header = true, instructionalButton = true}, function()
RageUI.Button(‘Rimuovi Tutti i Componenti’, nil, {}, true, function(Hovered, Active, Selected)
if (Selected) then
TriggerEvent(‘esx_access:smontacomp’)
end
end)
RageUI.Button(‘Smonta Silenziatore’, nil, {}, true, function(Hovered, Active, Selected)
if (Selected) then
TriggerEvent(‘esx_access:smontasupp’)
end
end)
RageUI.Button(‘Smonta Torcia’, nil, {}, true, function(Hovered, Active, Selected)
if (Selected) then
TriggerEvent(‘esx_access:smontatorch’)
end
end)
RageUI.Button(‘Smonta Skin’, nil, {}, true, function(Hovered, Active, Selected)
if (Selected) then
TriggerEvent(‘esx_access:smontaskin’)
end
end)
RageUI.Button(‘Smonta Grip’, nil, {}, true, function(Hovered, Active, Selected)
if (Selected) then
TriggerEvent(‘esx_access:smontgrip’)
end
end)
end)
end
Riusciresti a inserirlo nel mio?
function ComponentiMenu()
local isArmored = false
local playerArmour = GetPedArmour(GetPlayerPed(-1))
if playerArmour > 0 then
isArmored = true
end
RageUI.DrawContent({header = true, instructionalButton = true}, function()
RageUI.Button(‘Rimuovi Tutti i Componenti’, nil, {}, true, function(Hovered, Active, Selected)
if (Selected) then
TriggerEvent(‘esx_access:smontacomp’)
end
end)
RageUI.Button(‘Smonta Silenziatore’, nil, {}, true, function(Hovered, Active, Selected)
if (Selected) then
TriggerEvent(‘esx_access:smontasupp’)
end
end)
RageUI.Button(‘Smonta Torcia’, nil, {}, true, function(Hovered, Active, Selected)
if (Selected) then
TriggerEvent(‘esx_access:smontatorch’)
end
end)
RageUI.Button(‘Smonta Skin’, nil, {}, true, function(Hovered, Active, Selected)
if (Selected) then
TriggerEvent(‘esx_access:smontaskin’)
end
end)
RageUI.Button(‘Smonta Grip’, nil, {}, true, function(Hovered, Active, Selected)
if (Selected) then
TriggerEvent(‘esx_access:smontgrip’)
end
end)
if isArmored then
RageUI.Button('Smonta corazza (' .. playerArmour .. ')', "", {}, true, function(Hovered, Active, Selected)
if (Selected) then
TriggerServerEvent('atlantis_kevlar:armourRemove', playerArmour)
RageUI.CloseAll()
end
end)
end
end)
end
sei risucito a farlo andare?
Perfetto, grazie mille. Aspetto altri tuoi Release! Grande
1 Like
di nulla!
mi fa piacere che ti sia piaciuto!
Good release, but if you equip the kevlars on an addon PED or a MP PED, the game crashes