Skip to content

Weapon Item Generator

Create equippable weapons that players can carry in their inventory and use in combat.


Overview

Use this tool to generate the Lua structure for your custom weapon item. Once generated, the code should be placed in a new file within your schema's items directory.

Note on Automatic Generation: Lilia automatically generates weapon items for any registered weapon entity that does not have a manual item definition. Using this generator to create a custom item will override that default behavior for the specified weapon class.

Recommended Placement:

garrysmod/gamemodes/[schema folder]/schema/items/[item_id].lua

Unique identifier for this item (no spaces, lowercase)
3D model path displayed in the inventory
The weapon entity class that is given when equipped
Inventory slot width
Inventory slot height
Can the weapon be holstered/visible on the player's back?
Visual attachment point on the player model

Generated Code