📦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.sql

This 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 gunsmith

This ensures the Gunsmith script is started with your server.


To help control the number of functioning guns on your server, you can use a “worn weapon” workflow:

  1. 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.

  2. 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.

  3. 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.sql has been run

  • The script is ensured

  • (Optionally) worn weapons are set up in core

…your Gunsmith system is ready to use.

Last updated