So I wrote up a few donator jobs for this DarkRP server and they don't work, I can't tell what the problem is. Hopefully someone can tell me what I did wrong.
[CODE]TEAM_RUNNER = Darkrp.createJob ("Runner") {
color = Color(153, 102, 153, 255),
model = "models/player/odessa.mdl",
description = [[Get hired to run messages, scout out places where
people cant usually go, and elude the combines
with your parkour skills!
****VIP JOB ONLY**** ]],
weapon = {"climb_swep2"},
command = "runner",
max = 2,
salary = 300,
admin = 0,
vote = false,
hasLicense = false,
CanPlayerSuicide = function(ply) return false end,
customCheck = function(ply) ply:checkGroup("VIP") end,
customCheckFailMsg = "You are not a VIP!"
})
TEAM_JUGG = Darkrp.createJob ("Juggernaut") {
color = Color(0,55,255, 255),
model = "models/player/combine_soldier_prisonguard.mdl",
description = [[Provide cover to your for your fellow combines with your riotshield and armour ****VIP ONLY****]],
weapon = {"riotshield"},
command = "Jugg",
max = 2,
salary = 300,
admin = 0,
vote = false,
hasLicense = true,
CanPlayerSuicide = function(ply) return false end,
PlayerSpawn = function(ply) ply:SetArmor(100) end,
customCheck = function(ply) ply:checkGroup("VIP") end,
customCheckFailMsg = "You are not a VIP"
})
TEAM_SCOUT = Darkrp.createJob ("Scout") {
color = Color(0,55,255, 255),
model = "models/player/charple01.mdl",
description = [[Use your cloaking ability to scout out and spy on other people. Careful not to get caught! ****VIP JOB***]],
weapon = {"weapon_cloaking_device"},
command = "scout",
max = 2,
salary = 300,
admin = 0,
vote = false,
hasLicense = false,
CanPlayerSuicide = function(ply) return false end,
customCheck = function(ply) ply:checkGroup("VIP") end,
customCheckFailMsg = "You are not a VIP"
})
TEAM_SOLDIER = Darkrp.createJob ("Overwatch Solder") {
color = Color(0,55,255, 255),
model = "models/player/combine_super_soldier.mdl",
description = [[Take down criminals with higher power that a
police officer can\'t take out. (You are given
guns use them wisely as RDM with not be tolerated) ]],
weapon = {"m9k_glock"},
command = "soldier",
max = 3,
salary = 300,
admin = 0,
vote = true,
hasLicense = true,
CanPlayerSuicide = function(ply) return false end,
customCheck = function(ply) ply:checkGroup("VIP") end,
customCheckFailMsg = "You are not a VIP"
})[/CODE]
Uh, what is checkGroup? Also, you aren't returning anything, Read the format here: [url]http://wiki.darkrp.com/index.php/Donator_Job_configuration[/url]
Oh, I forgot to put the return before ply:checkGroup("vip"). And the checkGroup is on the page that you sent me -_-
But it's [B]C[/B]heckGroup, not checkGroup.
I fixed that aswell, thanks for the help.
Sorry, you need to Log In to post a reply to this thread.