📦Installation
1. Add the Resource
Add gunsmith as its own standalone resource/repository in your resources folder.
2. Database Setup
Run the included SQL file:
gunsmith.sqlThis will create the necessary database table(s) used by the Gunsmith system.
3. Ensure the Resource
Add the following line to your server.cfg or resources.cfg:
ensure gunsmithThis ensures the Gunsmith script is started with your server.
4. Optional — “Worn” Weapon System (Recommended)
To help control the number of functioning guns on your server, you can use a “worn weapon” workflow:
Create worn versions of weapons in core
Add a new item in your core items config for the worn variant of each weapon (e.g.
weapon_pistol_worn).Create new meta files (weapon metas) for these worn versions so they are recognized as separate weapons in-game.
Give players the worn version instead of the full weapon
Players receive the worn gun initially.
They must visit the Gunsmith to repair/restore it.
Make worn versions non-repeat repairable
In the Gunsmith config, ensure the worn version cannot be repaired more than once (or mark it as non-repairable after the first repair).
This way, once a worn weapon has been repaired and used up, it effectively becomes useless and helps keep gun numbers under control.
🎉 All Done
Once:
The gunsmith resource is added
gunsmith.sqlhas been runThe script is ensured
(Optionally) worn weapons are set up in core
…your Gunsmith system is ready to use.
Last updated
