TEAM_EXAMPLE = DarkRP.createJob("Тестовая фракция", {
color = Color(255, 255, 255, 255),
model = {
"models/player/Group03/Female_01.mdl",
"models/player/Group03/Female_02.mdl"
},
description = [[This text will serve as the description of
this team.]],
weapons = {"weapon_p2282"},
command = "example",
max = 0.7, -- at most 70% of the players can have this job. Set to a whole number to set an absolute limit.
salary = 45,
admin = 0,
vote = false,
hasLicense = false,
NeedToChangeFrom = TEAM_CITIZEN,
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,
maxpocket = 20,
candemote = false,
mayor = false,
chief = false,
medic = false,
cook = false,
hobo = false,
ammo = {
["pistol"] = 60,
},
category = "Other", -- The name of the category it is in. Note: the category must be created!
sortOrder = 100, -- The position of this thing in its category. Lower number means higher up.
playerClass = "player_darkrp",
buttonColor = Color(255, 255, 255, 255), -- The color of the button in the F4 menu
})