• What is wrong with this jobs lua
    6 replies, posted
What is wrong with this lua? /*-------------------------------------------------------- Default teams. If you make a team above the citizen team, people will spawn with that team! --------------------------------------------------------*/ TEAM_CITIZEN = AddExtraTeam("Citizen", { color = Color(20, 150, 20, 255), model = { "models/player/Group01/Female_01.mdl", "models/player/Group01/Female_02.mdl", "models/player/Group01/Female_03.mdl", "models/player/Group01/Female_04.mdl", "models/player/Group01/Female_06.mdl", "models/player/group01/male_01.mdl", "models/player/Group01/Male_02.mdl", "models/player/Group01/male_03.mdl", "models/player/Group01/Male_04.mdl", "models/player/Group01/Male_05.mdl", "models/player/Group01/Male_06.mdl", "models/player/Group01/Male_07.mdl", "models/player/Group01/Male_08.mdl", "models/player/Group01/Male_09.mdl" }, description = [[]], weapons = {"rphands"}, command = "citizen", max = 0, salary = 45, admin = 0, vote = false, hasLicense = false, candemote = false, mayorCanSetSalary = true }) TEAM_POLICE = AddExtraTeam("Civil Protection", { color = Color(25, 25, 170, 255), model = {"models/player/police.mdl", "models/player/police_fem.mdl"}, description = [[The protector of every citizen that lives in the city. You have the power to arrest criminals and protect innocents. Hit a player with your arrest baton to put them in jail. Bash a player with a stunstick and they may learn to obey the law. The Battering Ram can break down the door of a criminal, with a warrant for their arrest. The Battering Ram can also unfreeze frozen props (if enabled). Type /wanted <name> to alert the public to the presence of a criminal.]], weapons = {"arrest_stick", "unarrest_stick", "weapon_glock2", "stunstick", "door_ram", "weaponchecker","rphands"}, command = "cp", max = 4, salary = 65, admin = 0, vote = true, hasLicense = true, help = { "Please don't abuse your job", "When you arrest someone they are auto transported to jail.", "They are auto let out of jail after some time", "Type /warrant [Nick|SteamID|Status ID] to set a search warrant for a player.", "Type /wanted [Nick|SteamID|Status ID] to alert everyone to a wanted suspect", "Type /unwanted [Nick|SteamID|Status ID] to clear the suspect", "Type /jailpos to set the jail position" } }) TEAM_GANG = AddExtraTeam("Gangster", { color = Color(75, 75, 75, 255), model = { "models/player/Group03/Female_01.mdl", "models/player/Group03/Female_02.mdl", "models/player/Group03/Female_03.mdl", "models/player/Group03/Female_04.mdl", "models/player/Group03/Female_06.mdl", "models/player/group03/male_01.mdl", "models/player/Group03/Male_02.mdl", "models/player/Group03/male_03.mdl", "models/player/Group03/Male_04.mdl", "models/player/Group03/Male_05.mdl", "models/player/Group03/Male_06.mdl", "models/player/Group03/Male_07.mdl", "models/player/Group03/Male_08.mdl", "models/player/Group03/Male_09.mdl"}, description = [[The lowest person of crime. A gangster generally works for the Mobboss who runs the crime family. The Mob boss sets your agenda and you follow it or you might be punished.]], weapons = {"rphands"}, command = "gangster", max = 3, salary = 45, admin = 0, vote = false, hasLicense = false }) TEAM_MOB = AddExtraTeam("Mob boss", { color = Color(25, 25, 25, 255), model = "models/player/gman_high.mdl", description = [[The Mob boss is the boss of the criminals in the city. With his power he coordinates the gangsters and forms an efficient crime organization. He has the ability to break into houses by using a lockpick. The Mob boss posesses the ability to unarrest you.]], weapons = {"lockpick", "unarrest_stick", "rphands"}, command = "mobboss", max = 1, salary = 60, admin = 0, vote = false, hasLicense = false, help = { "As the Mob boss, you decide what you want the other Gangsters to do.", "You get an Unarrest Stick which you can use to break people out of jail.", "/agenda <Message> Sets the Gangsters' agenda. Use // to go to the next line." } }) TEAM_GUN = AddExtraTeam("Gun Dealer", { color = Color(255, 140, 0, 255), model = "models/player/monk.mdl", description = [[A Gun Dealer is the only person who can sell guns to other people. Make sure you aren't caught selling illegal firearms to the public! You might get arrested!]], weapons = {"rphands"}, command = "gundealer", max = 2, salary = 75, admin = 0, vote = false, hasLicense = false }) TEAM_Admin = AddExtraTeam("Staff on Duty", { color = Color(255, 140, 0, 255), model = "models/player/combine_super_soldier.mdl", description = [[You are a staff on duty. You must do your duties responsibily!]], weapons = {"rphands"}, command = "Staff", max = 5, salary = 1000000, admin = 1, vote = false, hasLicense = True }) TEAM_Admin = AddExtraTeam("Owner", { on Duty", { color = Color(255, 140, 0, 255), model = "models/player/combine_super_soldier.mdl", description = [[You are a staff on duty. You must do your duties responsibily!]], weapons = {"rphands"}, command = "Owner", max = 5, salary = 1000000, admin = 2, vote = false, hasLicense = True }) TEAM_Admin = AddExtraTeam("Co-Owner", { on Duty", { color = Color(255, 140, 0, 255), model = "models/player/combine_super_soldier.mdl", description = [[You are a staff on duty. You must do your duties responsibily!]], weapons = {"rphands"}, command = "Co", max = 5, salary = 1000000, admin = 2, vote = false, hasLicense = True }) TEAM_Admin = AddExtraTeam("CODING DO NOT BOTHER", { on Duty", { color = Color(255, 140, 0, 255), model = "models/player/combine_super_soldier.mdl", description = [[You are a staff on duty. You must do your duties responsibily!]], weapons = {"rphands"}, command = "Code", max = 5, salary = 1000000, admin = 2, vote = false, hasLicense = True }) TEAM_TERROR = AddExtraTeam("Terrorist", { on Duty", { color = Color(255, 140, 0, 255), model = "models/player/combine_super_soldier.mdl", description = [[You are a terrorist. Cause terror to the city! DON'T FORGET TO ADVERT IT FIRST THOUGH!]], weapons = {"rphands"}, command = "Terror", max = 5, salary = 1000000, admin = 2, vote = false, hasLicense = True }) TEAM_MEDIC = AddExtraTeam("Medic", { color = Color(47, 79, 79, 255), model = "models/player/kleiner.mdl", description = [[With your medical knowledge you work to restore players to full health. Without a medic, people cannot be healed. Left click with the Medical Kit to heal other players. Right click with the Medical Kit to heal yourself.]], weapons = {"med_kit","rphands"}, command = "medic", max = 3, salary = 45, admin = 0, vote = false, hasLicense = false, medic = true }) TEAM_CHIEF = AddExtraTeam("Civil Protection Chief", { color = Color(20, 20, 255, 255), model = "models/player/combine_soldier_prisonguard.mdl", description = [[The Chief is the leader of the Civil Protection unit. Coordinate the police force to enforce law in the city. Hit a player with arrest baton to put them in jail. Bash a player with a stunstick and they may learn to obey the law. The Battering Ram can break down the door of a criminal, with a warrant for his/her arrest. Type /wanted <name> to alert the public to the presence of a criminal. Type /jailpos to set the Jail Position]], weapons = {"arrest_stick", "unarrest_stick", "weapon_deagle2", "stunstick", "door_ram", "rphands", "weaponchecker"}, command = "chief", max = 1, salary = 75, admin = 0, vote = false, hasLicense = true, chief = true, NeedToChangeFrom = TEAM_POLICE, help = { "Please don't abuse your job", "When you arrest someone they are auto transported to jail.", "They are auto let out of jail after some time", "Type /warrant [Nick|SteamID|Status ID] to set a search warrant for a player.", "Type /wanted [Nick|SteamID|Status ID] to alert everyone to a wanted suspect", "Type /unwanted [Nic
What's your issue? Is there an error? Are they not appearing?
[QUOTE=code_gs;44608605]What's your issue? Is there an error? Are they not appearing?[/QUOTE] They are not appearing but they were before i added a job
This should work: [CODE] /*-------------------------------------------------------- Default teams. If you make a team above the citizen team, people will spawn with that team! --------------------------------------------------------*/ TEAM_CITIZEN = AddExtraTeam("Citizen", { color = Color(20, 150, 20, 255), model = { "models/player/Group01/Female_01.mdl", "models/player/Group01/Female_02.mdl", "models/player/Group01/Female_03.mdl", "models/player/Group01/Female_04.mdl", "models/player/Group01/Female_06.mdl", "models/player/group01/male_01.mdl", "models/player/Group01/Male_02.mdl", "models/player/Group01/male_03.mdl", "models/player/Group01/Male_04.mdl", "models/player/Group01/Male_05.mdl", "models/player/Group01/Male_06.mdl", "models/player/Group01/Male_07.mdl", "models/player/Group01/Male_08.mdl", "models/player/Group01/Male_09.mdl" }, description = [[]], weapons = {"rphands"}, command = "citizen", max = 0, salary = 45, admin = 0, vote = false, hasLicense = false, candemote = false, mayorCanSetSalary = true }) TEAM_POLICE = AddExtraTeam("Civil Protection", { color = Color(25, 25, 170, 255), model = {"models/player/police.mdl", "models/player/police_fem.mdl"}, description = [[The protector of every citizen that lives in the city. You have the power to arrest criminals and protect innocents. Hit a player with your arrest baton to put them in jail. Bash a player with a stunstick and they may learn to obey the law. The Battering Ram can break down the door of a criminal, with a warrant for their arrest. The Battering Ram can also unfreeze frozen props (if enabled). Type /wanted <name> to alert the public to the presence of a criminal.]], weapons = {"arrest_stick", "unarrest_stick", "weapon_glock2", "stunstick", "door_ram", "weaponchecker","rphands"}, command = "cp", max = 4, salary = 65, admin = 0, vote = true, hasLicense = true, help = { "Please don't abuse your job", "When you arrest someone they are auto transported to jail.", "They are auto let out of jail after some time", "Type /warrant [Nick|SteamID|Status ID] to set a search warrant for a player.", "Type /wanted [Nick|SteamID|Status ID] to alert everyone to a wanted suspect", "Type /unwanted [Nick|SteamID|Status ID] to clear the suspect", "Type /jailpos to set the jail position" } }) TEAM_GANG = AddExtraTeam("Gangster", { color = Color(75, 75, 75, 255), model = { "models/player/Group03/Female_01.mdl", "models/player/Group03/Female_02.mdl", "models/player/Group03/Female_03.mdl", "models/player/Group03/Female_04.mdl", "models/player/Group03/Female_06.mdl", "models/player/group03/male_01.mdl", "models/player/Group03/Male_02.mdl", "models/player/Group03/male_03.mdl", "models/player/Group03/Male_04.mdl", "models/player/Group03/Male_05.mdl", "models/player/Group03/Male_06.mdl", "models/player/Group03/Male_07.mdl", "models/player/Group03/Male_08.mdl", "models/player/Group03/Male_09.mdl"}, description = [[The lowest person of crime. A gangster generally works for the Mobboss who runs the crime family. The Mob boss sets your agenda and you follow it or you might be punished.]], weapons = {"rphands"}, command = "gangster", max = 3, salary = 45, admin = 0, vote = false, hasLicense = false }) TEAM_MOB = AddExtraTeam("Mob boss", { color = Color(25, 25, 25, 255), model = "models/player/gman_high.mdl", description = [[The Mob boss is the boss of the criminals in the city. With his power he coordinates the gangsters and forms an efficient crime organization. He has the ability to break into houses by using a lockpick. The Mob boss posesses the ability to unarrest you.]], weapons = {"lockpick", "unarrest_stick", "rphands"}, command = "mobboss", max = 1, salary = 60, admin = 0, vote = false, hasLicense = false, help = { "As the Mob boss, you decide what you want the other Gangsters to do.", "You get an Unarrest Stick which you can use to break people out of jail.", "/agenda <Message> Sets the Gangsters' agenda. Use // to go to the next line." } }) TEAM_GUN = AddExtraTeam("Gun Dealer", { color = Color(255, 140, 0, 255), model = "models/player/monk.mdl", description = [[A Gun Dealer is the only person who can sell guns to other people. Make sure you aren't caught selling illegal firearms to the public! You might get arrested!]], weapons = {"rphands"}, command = "gundealer", max = 2, salary = 75, admin = 0, vote = false, hasLicense = false }) TEAM_ADMIN = AddExtraTeam("Staff on Duty", { color = Color(255, 140, 0, 255), model = "models/player/combine_super_soldier.mdl", description = [[You are a staff on duty. You must do your duties responsibily!]], weapons = {"rphands"}, command = "Staff", max = 5, salary = 1000000, admin = 1, vote = false, hasLicense = True }) TEAM_OWNER = AddExtraTeam("Owner", { color = Color(255, 140, 0, 255), model = "models/player/combine_super_soldier.mdl", description = [[You are a staff on duty. You must do your duties responsibily!]], weapons = {"rphands"}, command = "Owner", max = 5, salary = 1000000, admin = 2, vote = false, hasLicense = True }) TEAM_COOWNER = AddExtraTeam("Co-Owner", { color = Color(255, 140, 0, 255), model = "models/player/combine_super_soldier.mdl", description = [[You are a staff on duty. You must do your duties responsibily!]], weapons = {"rphands"}, command = "Co", max = 5, salary = 1000000, admin = 2, vote = false, hasLicense = True }) TEAM_CODING = AddExtraTeam("CODING DO NOT BOTHER", { color = Color(255, 140, 0, 255), model = "models/player/combine_super_soldier.mdl", description = [[You are a staff on duty. You must do your duties responsibily!]], weapons = {"rphands"}, command = "Code", max = 5, salary = 1000000, admin = 2, vote = false, hasLicense = True }) TEAM_TERROR = AddExtraTeam("Terrorist", { color = Color(255, 140, 0, 255), model = "models/player/combine_super_soldier.mdl", description = [[You are a terrorist. Cause terror to the city! DON'T FORGET TO ADVERT IT FIRST THOUGH!]], weapons = {"rphands"}, command = "Terror", max = 5, salary = 1000000, admin = 2, vote = false, hasLicense = True }) TEAM_MEDIC = AddExtraTeam("Medic", { color = Color(47, 79, 79, 255), model = "models/player/kleiner.mdl", description = [[With your medical knowledge you work to restore players to full health. Without a medic, people cannot be healed. Left click with the Medical Kit to heal other players. Right click with the Medical Kit to heal yourself.]], weapons = {"med_kit","rphands"}, command = "medic", max = 3, salary = 45, admin = 0, vote = false, hasLicense = false, medic = true }) TEAM_CHIEF = AddExtraTeam("Civil Protection Chief", { color = Color(20, 20, 255, 255), model = "models/player/combine_soldier_prisonguard.mdl", description = [[The Chief is the leader of the Civil Protection unit. Coordinate the police force to enforce law in the city. Hit a player with arrest baton to put them in jail. Bash a player with a stunstick and they may learn to obey the law. The Battering Ram can break down the door of a criminal, with a warrant for his/her arrest. Type /wanted <name> to alert the public to the presence of a criminal. Type /jailpos to set the Jail Position]], weapons = {"arrest_stick", "unarrest_stick", "weapon_deagle2", "stunstick", "door_ram", "rphands", "weaponchecker"}, command = "chief", max = 1, salary = 75, admin = 0, vote = false, hasLicense = true, chief = true, NeedToChangeFrom = TEAM_POLICE, help = { "Please don't abuse your job", "When you arrest someone they are auto transported to jail.", "They are auto let out of jail after some time", "Type /warrant [Nick|SteamID|Status ID] to set a search warrant for a player.", "Type /wanted [Nick|SteamID|Status ID] to alert everyone to a wanted suspect", "Type /unwanted [Nick|SteamID|Status ID] to clear the suspect", "Type /jailpos to set the jail position" } }) TEAM_MAYOR = AddExtraTeam("Mayor", { color = Color(150, 20, 20, 255), model = "models/player/breen.mdl", description = [[The Mayor of the city creates laws to govern the city. If you a
what was wrong with it?
First of all, every new job you added was named [B]TEAM_Admin[/B] so I changed that. Secondly, everything custom started with this: [B]AddExtraTeam("Owner", { on Duty", {[/B] Have a look: [CODE] TEAM_Admin = AddExtraTeam("Staff on Duty", { color = Color(255, 140, 0, 255), model = "models/player/combine_super_soldier.mdl", description = [[You are a staff on duty. You must do your duties responsibily!]], weapons = {"rphands"}, command = "Staff", max = 5, salary = 1000000, admin = 1, vote = false, hasLicense = True }) TEAM_Admin = AddExtraTeam("Owner", { on Duty", { color = Color(255, 140, 0, 255), model = "models/player/combine_super_soldier.mdl", description = [[You are a staff on duty. You must do your duties responsibily!]], weapons = {"rphands"}, command = "Owner", max = 5, salary = 1000000, admin = 2, vote = false, hasLicense = True }) TEAM_Admin = AddExtraTeam("Co-Owner", { on Duty", { color = Color(255, 140, 0, 255), model = "models/player/combine_super_soldier.mdl", description = [[You are a staff on duty. You must do your duties responsibily!]], weapons = {"rphands"}, command = "Co", max = 5, salary = 1000000, admin = 2, vote = false, hasLicense = True }) TEAM_Admin = AddExtraTeam("CODING DO NOT BOTHER", { on Duty", { color = Color(255, 140, 0, 255), model = "models/player/combine_super_soldier.mdl", description = [[You are a staff on duty. You must do your duties responsibily!]], weapons = {"rphands"}, command = "Code", max = 5, salary = 1000000, admin = 2, vote = false, hasLicense = True }) TEAM_TERROR = AddExtraTeam("Terrorist", { on Duty", { color = Color(255, 140, 0, 255), model = "models/player/combine_super_soldier.mdl", description = [[You are a terrorist. Cause terror to the city! DON'T FORGET TO ADVERT IT FIRST THOUGH!]], weapons = {"rphands"}, command = "Terror", max = 5, salary = 1000000, admin = 2, vote = false, hasLicense = True }) [/CODE]
thx but idk what happened b/c it did not say that before i added the Coding one [editline]21st April 2014[/editline] i added the first admin classes but when a changed it again to add the coding job they all disappeared [editline]21st April 2014[/editline] i added the first admin classes but when a changed it again to add the coding job they all disappeared [editline]21st April 2014[/editline] ty it worked
Sorry, you need to Log In to post a reply to this thread.