Я откровенно говоря не имею понятия, почему это не работает.
TEAM_ADMIN = DarkRP.createJob("Администратор", {
color = Color(255, 255, 255, 255),
model = {
"models/player/police.mdl",
"models/player/police_fem.mdl"
},
description = [[NONRP Профессия. Только для разборок и для полной работы как администратора.]],
weapons = {"nightstick"},
command = "example",
max = 0, -- at most 70% of the players can have this job. Set to a whole number to set an absolute limit.
salary = 1000,
admin = 0,
vote = false,
hasLicense = false,
candemote = true,
mayor = false,
chief = false,
medic = false,
cook = false,
hobo = false,
category = "Нейтральные", -- The name of the category it is in. Note: the category must be created!
--label = "Загадочный незнакомец", -- Optional: the text on the button in the F4 menu
--customCheck = function(ply) return ply:getDarkRPVar("money") > 10000 end,
--CustomCheckFailMsg = "You don't have enough money!", -- alternative: CustomCheckFailMsg = function(ply, jobTable) return ply:getDarkRPVar("money") < 5000 and "You're piss poor" or "You don't have enough money!" end,
PlayerLoadout = function(ply) ply:SetArmor(600) ply:SetMaxArmor(600) ply:SetHealth(600) ply:SetMaxHealth(600) ply:SetRunSpeed(500) ply:SetWalkSpeed(300) end,
customCheck = function(ply) return ply:GetNWString("usergroup") == "eventmaker" or ply:GetNWString("usergroup") == "mod" or ply:GetNWString("usergroup") == "admin" or ply:GetNWString("usergroup") == "sadmin" or ply:GetNWString("usergroup") == "chiefeventmaker" or ply:GetNWString("usergroup") == "chiefmod" or ply:GetNWString("usergroup") == "chiefadmin" or ply:GetNWString("usergroup") == "sudocurator" or ply:GetNWString("usergroup") == "curator" or ply:GetNWString("usergroup") == "superadmin" end,
CustomCheckFailMsg = "У вас должны быть Mod+ права"
})