GMod DarkRP Default Laws Builder
Build the GM.Config.DefaultLaws table for your DarkRP settings.lua. These are the laws displayed on the law board when no Mayor is active. Add, reorder, or remove laws, then copy as Lua config or a Discord #laws channel post.
Starter Laws
Click Load Preset Laws to populate with 5 common DarkRP default laws, or start from scratch below.
Laws (0 / 20)
⚖️
No laws yet. Load the preset or add laws manually.
Reset laws on Mayor change
GM.Config.shouldResetLaws — restores default laws when the Mayor job changes hands
Output
Lua — settings.lua
GM.Config.DefaultLaws = {
-- No laws defined yet.
}
GM.Config.shouldResetLaws = true
Paste this block into garrysmod/addons/darkrpmodification/lua/darkrp_config/settings.lua.
Discord — #laws channel post
**Current Server Laws** *(These are the default laws when no Mayor is active)* *No laws have been set.* *Laws reset on Mayor change: ***Yes**
Post this in your #laws or #server-info Discord channel so players know the default laws.
Settings Reference
| Config key | Type | Description |
|---|---|---|
| GM.Config.DefaultLaws | table (array of strings) | Laws shown on the law board when no Mayor is active. Each entry is one law line. |
| GM.Config.shouldResetLaws | boolean | If true, laws reset to DefaultLaws when the Mayor job changes. If false, laws persist between Mayors. |
