So i have added some job into my darkrp, but some of them work, some dont, i dont know why, i use the same code from the tcb job generator but some work and some dont
here the code:
[CODE]TEAM_BANK = DarkRP.createJob("Bảo vệ Ngân hàng", {
color = Color(44, 191, 85, 255),
model = {"models/player/guard_pack/guard_02.mdl", "models/player/guard_pack/guard_04.mdl", "models/player/guard_pack/guard_09.mdl"},
description = [[Bạn là bảo vệ Ngân hàng]],
weapons = {"tfa_csgo_glock18"},
command = "bankguard",
max = 5,
salary = 100,
admin = 0,
vote = true,
hasLicense = true,
candemote = false,
-- CustomCheck
medic = false,
chief = false,
mayor = false,
hobo = false,
cook = false,
category = "Citizen",
NeedToChangeFrom = TEAM_CITIZEN,
})[/CODE]
that the one that doesnt work, this is the one which work:
[CODE]TEAM_MEDIC = DarkRP.createJob("Bác sĩ", {
color = Color(216, 42, 42, 255),
model = {"models/player/kleiner.mdl"},
description = [[Bạn là bác sĩ]],
weapons = {"defibrillator"},
command = "medic",
max = 5,
salary = 70,
admin = 0,
vote = false,
hasLicense = false,
candemote = true,
-- CustomCheck
medic = true,
chief = false,
mayor = false,
hobo = false,
cook = false,
category = "Citizen",
NeedToChangeFrom = TEAM_CITIZEN,
})[/CODE]
The medic can change from citizen, but the bank guard doesn't, it doesn't show up in the f4 menu but i can still force me to the job by the admin panel
I'm currently in a hurry so i really need a answer
P/s: My english is not so good so dont correct my grammar
try setting candemote to true
Remove this line from both, its not necessary.
NeedToChangeFrom = TEAM_CITIZEN,
[QUOTE=Sys32;50947559]Remove this line from both, its not necessary.
NeedToChangeFrom = TEAM_CITIZEN,[/QUOTE]
Why not?
because it just forces everyone to only be able to join that job if they are a citizen
[QUOTE=HooplaMATT;50948375]because it just forces everyone to only be able to join that job if they are a citizen[/QUOTE]
That is the thing I want to do, make them all hobo, then u can only become citizen when u have 5k, then u can be other jobs
Changing candemote to true doesn't help
Make sure the jobs that you want to change to from Citizen are BELOW the Citizen job code. Not entirely sure if that's a fix, but I heard it somewhere.
Seem logic, gonna try later
[QUOTE=aultraman123;50977470]Make sure the jobs that you want to change to from Citizen are BELOW the Citizen job code. Not entirely sure if that's a fix, but I heard it somewhere.[/QUOTE]
OMG it work, i think when i put other job on top of citizen they haven't realize the Citizen team cuz it's hasn't defined (sorry if bad english)
Sorry, you need to Log In to post a reply to this thread.