List your weapons
If you make incomplete additions to the weapons, this weapon type will not leave any evidence and will display a warning in your F8 console saying "Please add your weapon to weapons.lua". Therefore, it is important to comprehensively define your weapons.
Follow the path:
Open the weapons.lua file with a code editor (such as Visual Studio Code or Notepad).
Open the weapons.lua file with a
At this stage, we recommend using editors like Visual Studio Code or
The sample code you found should be like this
-- [weapon_weaponname] = { name = 'weapon_weaponname', label = 'Weapon Display Name' },
After duplicating, arrange these lines individually based on your weapon list.
For example, let's say the name of our custom weapon is weapon_arpistol. In this case, we should update it as follows.
[weapon_arpistol] = { name = 'weapon_arpistol', label = 'AR Pistol' },
The label value indicates how the name of the weapon should appear in the evidence.
The name value and the initial value inside square brackets must be the same.
In the sample code, there are two "-" signs at the beginning of the line. You must remove these signs when adding your weapons. That is:
Incorrect Usage:
-- [weapon_weaponname] = { name = 'weapon_weaponname', label = 'Weapon Display Name' },
Correct Usage:
[weapon_weaponname] = { name = 'weapon_weaponname', label = 'Weapon Display Name' },