Skip to content

Faction Generator

Define the major playable groups in your schema, such as civilians, police, staff, medical teams, military units, or custom setting-specific organizations. Factions are the top-level structure for character creation, whitelisting, models, limits, and default roleplay permissions.

Output Location:

garrysmod/gamemodes/[schema folder]/schema/definitions/sh_factions.lua

You can also add callback fields like OnTransferred, OnSpawn, NameTemplate, GetDefaultName, GetDefaultDesc, or any custom logic manually after generation. You can find those in Faction Definitions.

The constant name you want to assign to the registered faction index.
Use three numbers from 0 to 255.
Logo shown on the scoreboard. You can use a material path or a web URL. Leave empty for no logo.
Can new characters join this faction by default?
Players can only have one character in this faction?
0 = unlimited, decimals = percentage of server (e.g., 0.1 = 10%)
Add the player models this faction can use. Each entry is split into a model row and a second row for the skin/bodygroup rules tied to that model.
Players in this faction can pick a skin for their character during character creation.
Players in this faction can customize bodygroups for their character during character creation.
Skin numbers players are allowed to choose. Leave empty to allow all skins.
Allowed bodygroup values by bodygroup number. More advanced setups can be added manually later.
Always multiplies the configured run speed. Use 1 for default speed.
Always multiplies the configured walk speed. Use 1 for default speed.
Always multiplies the player's base jump power. Use 1 for default jump.
How much they get paid each paycheck.
How often this faction gets paid. Leave empty to use the server salary timer.
Character size. Leave empty for normal size.
Blood color used for this faction. Leave default for normal human characters.
Weapons this faction receives on spawn.
Items new characters in this faction start with.
Members of this faction always recognize everyone.
Everyone automatically recognizes members of this faction.
Members of this faction automatically recognize each other.
Faction won't appear in scoreboard categories
Lower numbers show higher on the scoreboard.
Everyone can see this faction's classes on the scoreboard.
Members of this faction can see every faction's classes on the scoreboard.
Where this faction can spawn on each map.
Where this faction preview appears in the main menu.
How NPCs react to this faction.
Command names that members of this faction can execute.

Generated Code