Faction Generator
Define the core groups and teams that players can join on your server.
Overview
Use this tool to generate the Lua structure for your custom faction. Once generated, the code should be placed in a new file within your schema's factions directory.
Recommended Placement:
garrysmod/gamemodes/[schema folder]/schema/factions/[faction_name].lua
The unique identifier for this faction (e.g., FACTION_POLICE)
Comma-separated RGB values (0-255)
Logo material path or URL for scoreboard (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 player model paths
Currency amount per paycheck
Interval in seconds between paychecks (defaults to global salary interval if not set)
Add weapon classes
Add item unique IDs
Members are always globally recognized
Faction is globally recognizable to others
Members automatically recognize each other
Faction won't appear in scoreboard categories
Lower numbers appear first in scoreboard (default: 999)
Map Name, Position Vector, Angle
Map Name (leave empty for all), Position Vector, Angle
Command Name, Enabled