Code:
/*----------------------------------------------------------
VIP.
---------------------------------------------------------*/
local VIP = {
//Staff groups
"admin",
// VIP Groups
"vip",
"vip2",
"vip3"
}
TEAM_RANDOMJOB = DarkRP.createJob("Random Job", {
color = Color(248,0,213),
model = {"Random_model"},
description = [[]],
weapons = {"test1","test2"},
command = "jobcommandamazing",
salary = 5,
admin = 0,
max = 1,
vote = false,
hasLicense = false,
candemote = false,
category = "Category",
PlayerLoadout = function(ply)
ply:SetMaxHealth(200)
ply:SetHealth(200)
ply:SetWalkSpeed(200)
ply:SetRunSpeed(300)
ply:SetArmor(100)
ply:SetMaxArmor(200)
end,
modelScale = 0.6,
customCheck = function(ply)
return (table.HasValue(VIP, ply:GetUserGroup()))
end,
CustomCheckFailMsg = "This job is for VIP only!",
})
As it was not in the files how you make vip jobs (as I don't think everyone got a whitelisting addon). Also if your modelScale = 0.6, does not work. Try the below
Code:
/*----------------------------------------------------------
VIP.
---------------------------------------------------------*/
local VIP = {
//Staff groups
"admin",
// VIP Groups
"vip",
"vip2",
"vip3"
}
TEAM_RANDOMJOB = DarkRP.createJob("Random Job", {
color = Color(248,0,213),
model = {"Random_model"},
description = [[]],
weapons = {"test1","test2"},
command = "jobcommandamazing",
salary = 5,
admin = 0,
max = 1,
vote = false,
hasLicense = false,
candemote = false,
category = "Category",
PlayerLoadout = function(ply)
ply:SetMaxHealth(200)
ply:SetHealth(200)
ply:SetWalkSpeed(200)
ply:SetRunSpeed(300)
ply:SetArmor(100)
ply:SetMaxArmor(200)
timer.Simple(0.1, function() ply:SetModelScale(0.6, 1) end)
end,
customCheck = function(ply)
return (table.HasValue(VIP, ply:GetUserGroup()))
end,
CustomCheckFailMsg = "This job is for VIP only!",
})