DarkRP:How to create jobs v2.6.x

From Serenity Servers Support

Make your own jobs!

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,
}

<embedvideo service="youtube">https://www.youtube.com/watch?v=OkmzmmkLIY4</embedvideo>


Banner
Promo