[ESX] Weapon Extensions | Addon Items

Yeah, it’s sort of a kind of another kind of re-release but you hopefully you all like it. Im only releasing because people asked for it.

It’s an edit of ESX’s Weapon Accessories. I didn’t change much of the original code besides reformatting it to make it look beautiful lol. However I did add Armor Items(3) and Ammo Box( 1 for each type of weapon)

Features:

  • Yusuf Weapon Skin
  • Flashlights, Grips, Silencers
  • Light, Medium, Heavy Body Armor - With actual vest that spawns
  • Pistol/SMG/AR/SG Ammo Boxs

.

Preview of what I added:

https://streamable.com/pky7x (couldn’t figure out how to embed lol)

It requires both Mythic’s progressbar and notify. It’s easy to edit out.

Just change all the

exports['mythic_notify']:DoHudText('inform', 'message')

to whatever you wanna use to show the messages.

Mythic’s Resources:
https://github.com/mythicrp/mythic_notify
and

https://github.com/mythicrp/mythic_progbar

Finally my download:

15 Likes

Link does not work bud.

Should be now. Accidentally uploaded private

1 Like

Why did you make this? Just use ESX’s official accessories that they use in every script, like esx_policejob etc. Why do you have to use that outdated code? Just use the ESX own accessories which was made to replace these kind of scripts because they are pretty bad!

1 Like

Well if you bothered to read the post. I stated that this was an edit and the only actual code that I made was the armor items and ammo items which are not in ESX_Accessories.

Thanks for the feedback though

1 Like

Nice idea but you really could of saved alot with the way you scripted it.

Yeah, still fairly new to lua. I’m looking into ways to optimize it.

everytime people used ammo boxes and logout, they disappeared

Bro I’m not talking about ESX_accessories. Holy… ESX have implemented all of this in the es_extended resource…

Ah I see now, Never noticed that in es_extended. My bad.

Can i remove vest when armor is broken ?

Add this to client

Citizen.CreateThread(function()
    while true do
        Citizen.Wait(1)
        local ped = GetPlayerPed(-1)
        if GetPedArmour(ped) == 0 then
            SetPedComponentVariation(ped, 9, 0, 0, 0)
        end
    end
end)

thx it’s awesome !

I really liked it, it would be cool for a next feature, the option to remove the vest or save. Congrats on the job!

1 Like

how to make the extensions weap not disappeared when you log out and put at warehouse?

Where can I get that bag plugin?

The weapon extensions should stay. Only the body armor disappears.

How to put the Armor and Ammos into esx_weaponshop?

Esx accessories is cancer

Is there any way we can add these to esx_weaponshop? I tried to add it to the table “weashop” in the DB but when I go into the shop it says “Nil”.

I’m thinking esx_weaponshop doesn’t recognize anything from the “Items” table as in esx_weaponshop it says [’@item’] = weaponName