How to add weapon

How to add a weapon? (for ESX)

It's important to have type="WEAPON" and also ammo count and don't forget about the label.

 {
     name = 'WEAPON_PISTOL',
     label = 'Pistol',  --IMPORTANT
     price = 15.0,
     amount = 1,
     ammo = 50, --IMPORTANT
     type = 'WEAPON',  --IMPORTANT
     weight = 2.0, --If using weight system
 }, 

How to add a weapon? (For QBCore)

QBCore has weapons as an item so there is no need to add "type = 'weapon'" like displayed above.

 {
     name = 'WEAPON_PISTOL',
     label = 'Pistol',
     price = 15.0,
     amount = 1,
     weight = 2.0, 
 }, 

Last updated