How does the weapon durability system work and how can it be configured?
There are two different durability systems for weapons — one for firearms and one for melee weapons.
Firearms
Firearms use a bullet-based durability system.
Each weapon is given a maximum number of bullets it can fire before becoming unusable.
For example, a pistol can be configured to become unusable after firing 200 bullets.
Melee Weapons
Melee weapons are based on time-based durability.
For example, a bat can be configured to become unusable 10,000 seconds after it is created or received by the player.
How to configure durability
You can configure these values from:
tgiann-inventory/configs/configWeapon.luaFor melee weapons, edit the
meleeList = {}object.For firearms, edit the
weaponList = {}object.
Important Note
Durability values do not update in real-time while the weapon is in use. For example, the number of bullets fired will only be reflected after you unequip or drop the weapon.
Last updated