custom jobs help

Post Reply
zoaz123
New to forums
New to forums
Posts: 1
https://www.youtube.com/channel/UC40BgXanDqOYoVCYFDSTfHA
Joined: Tue Sep 09, 2014 3:23 pm

custom jobs help

Post by zoaz123 »

ok so im trying my hardest to set up my first custom class but no matter what i try it doesnt appear in the f4 menu. please help me?

TEAM_SUPER-ADMIN = DarkRP.createJob("Super-Admin-On-Duty", {
Color = Color(0, 0, 0, 255),
model = {"models/halo4/spartans/masterchief.mdl"},
description = [[your are the Super Admin, your word caries more weight than anyone else's. you cannot be challenged]],
weapons = {"weapon_ak472"},
command = "Super-Admin",
max = 2,
salary = 2000,
admin = 2,
vote = false,
hasLicense = true,
theRadAleks
This is my homepage
This is my homepage
Posts: 203
Joined: Wed Feb 19, 2014 6:07 pm
Location: Dallas, TX

Re: custom jobs help

Post by theRadAleks »

Your first mistake was putting '2' in the the admin line. If you want your job to be accessable by only one group, assuming you are using ULX you can visit this for a more detailed explanation http://wiki.darkrp.com/index.php/Donato ... figuration

Assuming everything is default, and you didnt change the default name of your superadmin group this would be right code to put in.

Code: Select all

TEAM_SUPERADMIN = DarkRP.createJob("Super-Admin-On-Duty", {
	color = Color(0, 0, 0, 255),
	model = {"models/halo4/spartans/masterchief.mdl",},
	description = [[Your the Super-Admin, your word caries more
        weight than anyone else's. You cannot be challenged.]],
	weapons = {"weapon_ak472"},
	command = "superadmin",
	max = 2,
	salary = 2000,
	admin = 0,
	vote = false,
	hasLicense = true,
        customCheck = function(ply) return ply:GetUserGroup() == "superadmin" end
})
NOTE: That line of code would only work for DarkRP 2.5 using ULX, this should work!
Post Reply