Skip to main content
sh-weaponspawner gives your server’s staff and authorized groups an in-game menu for spawning weapons directly to their inventory, organized into named categories such as pistols and rifles. Like sh-vehiclespawner, access is controlled entirely through FiveM’s native ACE permission system — no framework dependency, no database, and no additional UI library beyond WarMenu. You define which groups see which categories, and the resource enforces it server-side.
sh-weaponspawner follows the same ACE permission model as sh-vehiclespawner. If you have already configured ACE groups for sh-vehiclespawner, you can reuse those groups here with only the node names changed.

Requirements

sh-weaponspawner depends on warmenu. Ensure warmenu is started before sh-weaponspawner in your server.cfg. No SQL import is required.

Installation

1

Download and place the resource

Copy the sh-weaponspawner folder into your server’s resources directory alongside warmenu.
2

Add to server.cfg

server.cfg
3

Configure config.lua

Open sh-weaponspawner/config.lua and define your categories, weapon entries, and ammo amounts as described below.
4

Add ACE permission nodes

Grant the appropriate ACE nodes to your staff and player groups as shown in the Permissions section.
5

Restart the resource

Run refresh then restart sh-weaponspawner in the server console, or perform a full server restart.

Core Configuration

The table below covers the top-level options in config.lua. All values shown are the shipped defaults.
config.lua
The menu opens with the F6 key by default. Players can remap this in the GTA V pause menu under Settings → Key Bindings → FiveM.

Permissions

sh-weaponspawner uses the same three-tier ACE pattern as sh-vehiclespawner: an open node to access the menu at all, an all node to bypass category restrictions, and individual category nodes for granular control.
server.cfg
weaponspawner.all bypasses every category-level check. Reserve this node for server owners and senior staff only.

Defining Weapon Categories

Weapons are defined in Config.Weapons as a list of category objects. Each category has a name that maps to the permission key in Config.CategoryPermissions, and a list of weapon entries. The category name must match its key in Config.CategoryPermissions exactly.
config.lua

Weapon Entry Fields

A full list of GTA V weapon hash names is available through the FiveM natives reference. Always use the all-caps WEAPON_ prefixed hash string, not the numeric hash.

Pairing with sh-vehiclespawner

If you run both sh-weaponspawner and sh-vehiclespawner on the same server, use identical group names for both resources so a single add_principal or add_ace line covers a player’s access across both scripts.
server.cfg
This pattern scales cleanly: define your groups once, then add ACE nodes as you install new SH Development resources.
sh-weaponspawner spawns weapons directly into the player’s inventory without a confirmation prompt. Do not grant weaponspawner.open to regular players on a roleplay server where weapon possession is roleplayed — restrict it to staff and whitelisted groups only.