How to add custom weapon compatibility?
Actually, it's very simple to do this. Now I will show you step by step how you can do it.
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.
Important
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' },
Last updated