Where to find weapon/attachment ID's

I have looked all over the internet and can’t seem to find one place that lists all weapon components/attachments ID’s. Below is something I’m working on, and would like to add more attachments but don’t know the names. If anyone can point me to the right direction it would be very much appreciated

              giveWeapon("weapon_carbinerifle")
                  weaponComponent("weapon_carbinerifle", "COMPONENT_AT_AR_FLSH")
                  weaponComponent("weapon_carbinerifle", "COMPONENT_AT_AR_AFGRIP")
                  weaponComponent("weapon_carbinerifle", "COMPONENT_AT_SCOPE_MEDIUM")
3 Likes

List can be found in native reference https://runtime.fivem.net/doc/natives/#_0xBF0FD6E56C964FCB

I’ve looked there before but I still can’t find a list of the attachments, I have the weapons already :confused:

1 Like

Oh i’m actually retarded, i though you wanted a list of weapon names not attachments :woman_facepalming: 2 sec

1 Like

haha all good

weaponComponent("weapon_carbinerifle", "COMPONENT_AT_AR_FLSH")

COMPONENT_AT_AR_FLSH is an attachment for the carbinerifle I’m trying to find a list of all the components for every weapon.

1 Like

Does this help? https://wiki.rage.mp/index.php?title=Weapons_Components

2 Likes

That’s what I needed, thanks!

How do you add components with ESX police job, I don’t know what the numbers mean

1 Like

Same is it nessesary to use these numbers?

It seems like the numbers in the components thingy is actually just prices & depending on how many commas you use, it will add attachments. If this makes sense…
So:

{weapon = 'WEAPON_CARBINERIFLE', components = {0, 1000, 4000, 8000, nil}, price = 3000},
-- 0 = component 0 & component price = 0
-- 1000 = component 1 & component price 1000
-- 4000 = component 2 & component  price 4000

I could be wrong but ive spent some time with this now and it seems like theyre only prices & then as i said depending on how many " , " you use, it will use the first component for the first “,” and so on…

how can i add a holographic scope for the AK-12 in my fivem server?