Addon Weapons
Welcome to Addon weapon
For this section, if you do not have the minimum knowledge, or an experienced developer, avoid modifying or integrating custom weapons to your server to avoid errors, or problems with the inventory resource, with this we make clear that a support will not help you to configure a section like this to your server.
Now knowing that some basic skills are expected for this, we will make it as a brief guide and explained in the best way for users of our inventory can get to get varieties of weapons.
With the first step you have to add your weapon as an item to the ESX system and validate that the weapon you are adding the owners of the store or the weapon they sold you or offer you add a small basic guide to add the weapon to the ESX system.
As a second step now we will begin the configuration of the new weapon in the quasar inventory, so we will proceed to go to
[inventory]\qs-inventory-inventory-shared-items.lua
and add the weapon, as an example we will take the name of the AK47 weapon.
As a third step, we will now add the weapon in
[inventory]\qs-inventory\inventory\shared\weapons.lua
following the same example above with the name AK47
In the fourth step we have the integration of the Usable Items, and for this in the Addon attachments section is fully explained for you to understand them, but to continue with the tutorial of implementation of a custom weapon, we will make the example that our example weapon comes with 4 attachments so this will add it in
[inventory]\qs-inventory\server\custom\misc\CreateUsableItem.lua
In the addon attachments section, you will find the different categories that you can assign to your attachments, this to be able to place some of these items in the attachment slot of the weapon.
And as last step, we have the configuration of the weapon in the
weapons.lua
, where we will assign the durability of the weapon and assign the corresponding attachments that can be assigned, you can find the file mentioned in[inventory]\qs-inventory\config\weapons.lua
And if all goes well, you now have a custom weapon with 4 attachments ready to use with our inventory system, so we hope this will motivate the community to bring varied content.
Last updated