Okay so for everybody that’s utilizing krz_personalmenu you’ll must open the consumer/fundamental.lua
file.
Go round line 78 and duplicate and paste this line of code:
RMenu.Add('private', 'parts', RageUI.CreateSubMenu(RMenu.Get('rageui', 'private'), 'Smonta componenti', 'Smonta componenti', 0, 0))
After you’ve copied this line, go round line 1078-1080 and duplicate & paste this code:
if RageUI.Seen(RMenu.Get('private', 'parts')) then
RenderComponentsMenu()
finish
Then final, however not least, step, go in all places you need, outdoors of each operate, and duplicate and paste this operate:
operate RenderComponentsMenu()
native isArmored = false
native playerArmour = GetPedArmour(GetPlayerPed(-1))
if playerArmour > 0 then
isArmored = true
finish
RageUI.DrawContent({header = true, instructionalButton = true}, operate()
if isArmored then
RageUI.Button('Smonta corazza (' .. playerArmour .. ')', "", {}, true, operate(Hovered, Energetic, Chosen)
if (Chosen) then
TriggerServerEvent('atlantis_kevlar:armourRemove', playerArmour)
RageUI.CloseAll()
finish
finish)
finish
finish)
finish
After you’ve completed that, restart the menu and also you’re able to go!