> For the complete documentation index, see [llms.txt](https://docs.sourcefactory.eu/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.sourcefactory.eu/deathmatch/weapons-selection.md).

# Weapons Selection

Players can set their primary and secondary weapons using the `/gun <WEAPON_NAME>` command

* The weapon name doesn't have to be complete. For example, to set the '`AK47`', you only need to type '`ak`'.
* To display the list of allowed weapons for the current mode, simply type `/gun` without specifying a weapon name.

#### Additional informations about weapons:

* If a player doesn't have any weapon set for the current mode, they will get a weapon according to your configuration in the `Default Weapons` section.
* If a player tries to set a blocked weapon, it will not be assigned to them.
* If a saved weapon is not in a allowed weapons list, a player will not get it upon spawning.
* Bots will always randomly get weapons from your primary/secondary weapons list for the current mode.

{% hint style="info" %}
If you want to enable saving the weapons that players have set for each mod, set `Save Players Weapons` to true in the config file and fill in the data for your MySQL database.
{% endhint %}
