Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --[[
- Generated using: DarkRP | Job Generator
- https://csite.io/tools/gmod-darkrp-job
- --]]
- TEAM_ADMIN ON DUTY = DarkRP.createJob("Admin On Duty", {
- color = Color(254, 0, 0, 255),
- model = {"models/player/combine_super_soldier.mdl"},
- description = [[Admin class. To be fair, is to be admin.]],
- weapons = {"arrest_stick", "unarrest_stickstunstick"},
- command = "admin1",
- max = 12,
- salary = 1,
- admin = 1,
- vote = false,
- hasLicense = true,
- candemote = false,
- category = "Admin On Duty",
- mayor = true,
- chief = true,
- medic = true,
- PlayerSpawn = function(ply)
- ply:SetMaxHealth(100)
- ply:SetHealth(100)
- end,
- customCheck = function(ply) return CLIENT or
- table.HasValue({"admin", "superadmin", "moderator"}, ply:GetNWString("usergroup"))
- end,
- CustomCheckFailMsg = "Admin only",
- })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement