# DarkRP Job Generator

Create a DarkRP job with its models, loadout, salary and whitelist. Paste an existing job to edit it.

- Platform: Garry's Mod
- Canonical page: https://devtoolsgg.com/gmod/darkrp-job
- Writes to: Paste into addons/darkrpmodification/lua/darkrp_customthings/jobs.lua

## Options

### Identity

- `name` Job name (required). Shown in the F4 menu.
- `team` TEAM variable. The Lua global this job is stored in. Convention is TEAM_ plus the name in caps.
- `command` Chat command (required). Typing /command switches to this job. Lowercase, no spaces.
- `category` Category. F4 menu category. Must match a category you created, or DarkRP puts the job in Other.
- `color` Colour. Used in the F4 menu, the scoreboard and the HUD.
- `description` Description. Shown when a player selects the job.
- `model` Player models (required). One or more .mdl paths. Press Enter after each.

### Economy

- `salary` Salary (required). Paid every payday. The DarkRP default is 45.
- `max` Max players. 0 means unlimited.

### Loadout

- `weapons` Weapons. Weapon class names the job spawns with.
- `ammo` Spawn ammo. One entry per type, written type:amount, for example pistol:60.

### Permissions

- `admin` Admin level. Rank needed to take the job. For anything finer, use the whitelist below.
- `vote` Requires a vote. Players must vote the applicant in.
- `hasLicense` Spawns with a gun licence. Lets the job carry weapons without being arrested for it.
- `candemote` Can be demoted. Other players can start a demote vote against this job.
- `jobType` Special role. Unlocks the gamemode behaviour tied to that role.
- `mustChangeFrom` Must switch from. TEAM variable the player has to be on first. Leave empty for none.

### Whitelist

- `customCheck` Whitelist by user group. Adds a customCheck that only lets listed groups take the job.
- `allowedGroups` Allowed groups. User group names as your admin mod reports them.
- `customCheckMessage` Refusal message. Shown to players who are not in an allowed group.

## How to cite

DarkRP Job Generator, devtoolsgg.com. https://devtoolsgg.com/gmod/darkrp-job
