How to create jobs v2.6.x

A video, and text, on how to create jobs in DarkRP

Creating a job in DarkRP is very easy, follow the template and video below.
See our premade jobs further down for inspiration.

Creating jobs using our template below inside darkrpmodification/lua/darkrp_customthings/jobs.lua

TEAM_NAME = DarkRP.createJob("JOB NAME", {
	color = Color(20, 150, 20, 255),
	model = "models/player/model.mdl",
	description = [[Describe the job]],
	weapons = {},	
	command = "JOB",
	max = 0,
	salary = 55,
	admin = 0,
	vote = false,
	hasLicense = false,
	candemote = false,
	category = "Citizens",
})

Creaing the category, inside darkrpmodification/lua/darkrp_customthings/categories.lua

DarkRP.createCategory{	
	name = "Category",
	categorises = "jobs",
	startExpanded = true,
	color = Color(200, 20, 20, 255),
	canSee = function(ply) return true end,	
	sortOrder = 100,
}

|

Last update: 2018-05-25 08:40:49

Read more about DarkRP

Can't find what you're looking for?

Open Ticket