[ESX Framework] [Free] Weapon Components script as items

Hello there guys :slight_smile:
Here is a simple script that i had buried (I don’t know if it’s someone else’s because i found it and edited the script as i wanted to do it). The at start was build only for the component of silencer but later on i updated it with these attachments
1)Flashlight
2)Scope
3)Box/Drum Magazine
4)Extended Clip
5)Grip
6) Silencer

Here you go,

ral_components.rar (2.2 KB)

Feel free to tell if there is any problem with the script

8 Likes

how to u remove attachments when added on a weapon

1 Like

this shit is fucking ass lmao imagine using ESX

1 Like

there is not removal at the moment in the script. I will update it when i have the time

ok thnx

do they keep the attachments on if you were to give it to someone, etc?

In theory yes it should keep them. I think when you give it to someone es_extended gives it with the attachments.

Nice script, would use PlayerPedId() instead of GetPlayerPed(-1) though, it’s a bit quicker!

1 Like

that would be very nice… good job

Do the attachments + ammo save to the DB? Having issues with all the ones I try failing to save.

since its esx es_extended is saving the loadout of every player

Please don’t put it on ur tebex I understand it’s free but have a Github link as well or something just annoying.

thank you bro from thai

I have weapons in items so how to attach on it um stuck can any help me ^^

The sql did not work