Garry's Mod tools

DarkRP job generator

Jobs with models, weapons, salaries, permissions and custom checks.

Paste into darkrpmodification/lua/darkrp_customthings/jobs.lua

Base Configuration

Core details and the Lua name other code uses to reference the job.

The variable the job is stored in.

Shown in the F4 menu and scoreboard.

The F4 menu category. It must already exist.

Press Enter after each path, or pick from the default models.

Job Configuration

How the job looks and what players spawn with.

#2391fb

Used in the F4 menu, scoreboard and chat.

Explain what the job does.

Players type /guard to become the job.

Weapon classes given on spawn.

Players must be one of these jobs first.

Economy Configuration

Pay and how many players can hold the job at once.

Paid every payday.

Use 0 for no limit.

Permission Configuration

Who can take the job and how they get it.

For VIP jobs, use a custom check instead.

Whether a vote is held before joining.

Whether the job spawns with a gun license.

Whether other players can vote to demote.

Custom Check Configuration

Limit who can take this job to certain usergroups, SteamIDs or jobs.

What the player is checked against.

Press Enter after each group.

Shown when a player fails the check.

Type Configuration

Give the job one of the special DarkRP roles.

Can set laws and start lockdowns and lotteries.

Marks the job as the head of the police.

Counts as a medic in DarkRP's checks.

Can sell food when hungermod is enabled.

Counts as a hobo in DarkRP's checks.

Spawn Configuration

Health, armor and ammo given on spawn.

Starting and max health.

Starting and max armor.

Ammo type and amount, like pistol:60.

Other Configuration

Demotion on death and level requirements.

Common for mayors.

Needs the Vrondakis level system.

7 fields need attention.

Generated code

jobs.lua
1-- Unnamed Job2-- Generated with Wattle Tools: DarkRP Job Generator3-- https://wattletools.com/gmod/darkrp-job4 5TEAM_UNNAMED = DarkRP.createJob("", {6    color = Color(35, 145, 251),7    model = "",8    description = [[]],9    weapons = {},10    command = "",11    max = 0,12    salary = 0,13    admin = 0,14    vote = false,15    hasLicense = false,16    candemote = true,17})
Esc