Hey dear facepunch-users
The Chief job I created was not showing due to
NeedToChangeFrom = {TEAM_POLICE, TEAM_SNIPE, TEAM_SWAT},
Full Code of Chief:
TEAM_CHIEF = DarkRP.createJob("Chief", {
color = Color(70, 70, 255, 255),
model = "models/player/combine_soldier_prisonguard.mdl",
description = [[]],
weapons = {"m9k_usp", "stunstick", "door_ram", "weaponchecker", "weapon_stungun", "m9k_remington870", "arrest_stick", "unarrest_stick"},
command = "chief",
max = 1,
customCheck = function(ply) return
table.HasValue({TEAM_SLEAD, TEAM_POLICE, TEAM_SNIPE, TEAM_SWAT}, ply:Team())
end,
salary = GAMEMODE.Config.normalsalary * 3,
admin = 0,
vote = false,
hasLicense = true,
ammo = {
["pistol"] = 120,
["buckshot"] = 90,
["smg1"] = 180,
},
sortOrder = 20,
})
Even if I was Police it didnt show up. It works perfectly on other jobs
I checked it. It's correct. Also it works on the standard f4 Menu (I'm using a [custom one] where the guy that made it is not responding to support tickets)
I bypassed it with a simple customcheck and removed the NeedToChangeFrom Line..
customCheck = function(ply) return
table.HasValue({TEAM_SLEAD, TEAM_POLICE, TEAM_SNIPE, TEAM_SWAT}, ply:Team())
end,
any chance I can hide the job from citizens and the other jobs directly in the job?
I don't really want to turn on GM.Config.hideNonBuyable because it would hide the entities and things too..
I hope this is the correct section for it.. sorry if it isn't.
Sorry, you need to Log In to post a reply to this thread.