Weapon
Configuration schema for weapon entries, ammunition bindings, and durability degradation.
Weapon Definition
Define weapons and durability rates in shared/weapons.lua:
['WEAPON_APPISTOL'] = {
label = 'AP Pistol',
weight = 1400,
durability = 0.1, -- Quality percentage lost per bullet fired
ammoname = 'ammo-9',
},Schema Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
label |
string | Yes | Display name in inventory UI |
weight |
number | Yes | Weapon weight in grams |
durability |
number | Yes | Quality percentage lost per shot fired |
ammoname |
string | Yes | Item name of required ammunition |
On this page