• what is wrong with my Shared.lua (Darkrp)
    5 replies, posted
[ERROR] gamemodes/darkrp/gamemode/shared.lua:169: '}' expected near '"DonerAdmin"' 1. unknown - gamemodes/darkrp/gamemode/shared.lua:0 [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 = [[The Citizen is the most basic level of society you can hold besides being a hobo. You have no specific role in city life.]], weapons = {}, command = "citizen", max = 0, salary = 45, admin = 0, vote = false, hasLicense = false, candemote = false, mayorCanSetSalary = true }) TEAM_SWAT = DarkRP.createJob("S.W.A.T", { color = Color(80, 45, 0, 255), model = "models/player/swat.mdl", description = [[This is a donator special job, your duty is to heal on of your wounded operatives. You should stay in the PD until backup is needed. Do everything you can to keep the city safe.]], weapons = {"arrest_stick", "unarrest_stick", "weapon_glock2", "weapon_ak472", "ls_sniper", "weapon_m42", "weapon_mp52", "stunstick", "door_ram", "weaponchecker"}, command = "swat", max = 3, salary = 100, admin = 0, vote = true, hasLicense = true, }) TEAM_SWATC = DarkRP.createJob("S.W.A.T Cheif", { color = Color(80, 45, 0, 255), model = "models/player/swat.mdl", description = [[This is a donator special job, your duty is to heal on of your wounded operatives. You should stay in the PD until backup is needed. Do everything you can to keep the city safe. You can heal your team, but it's not optinal unless theres no medics alive. If theres no mayor, you're in charge.]], weapons = {"arrest_stick", "unarrest_stick", "weapon_glock2", "weapon_ak472", "ls_sniper", "weapon_m42", "weapon_mp52", "stunstick", "door_ram", "weaponchecker", "med_kit"}, command = "swat", max = 1, salary = 200, admin = 0, vote = true, hasLicense = true, customCheck = function(ply) return table.HasValue({"Donator", "VIP", "VIP+", "DonerAdmin", "superadmin", "DonerMod", "Coder", "Owner"}, ply:GetNWString("usergroup")) end }) 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 his/her arrest. The Battering Ram can also unfreeze frozen props(if enabled). Type /wanted <name> to alert the public to the presence of a criminal. OR go to tab and warrant someone by clicking the warrant button]], weapons = {"arrest_stick", "unarrest_stick", "weapon_glock2", "stunstick", "door_ram", "weaponchecker"}, 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_POLICEM = 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 his/her arrest. The Battering Ram can also unfreeze frozen props(if enabled). Type /wanted <name> to alert the public to the presence of a criminal. OR go to tab and warrant someone by clicking the warrant button]], weapons = {"arrest_stick", "unarrest_stick", "weapon_glock2", "stunstick", "door_ram", "weaponchecker"}, command = "cpm", max = 4, salary = 65, admin = 0, vote = false, hasLicense = true, customCheck = function(ply) return table.HasValue({"Donator", "VIP", "VIP+", "DonerAdmin", "superadmin", "DonerMod", "Coder", "Owner"}, ply:GetNWString("usergroup")) end }) 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 = {}, command = "gangster", max = 3, salary = 45, admin = 0, vote = false, hasLicense = false, mayorCanSetSalary = 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"}, command = "mobboss", max = 1, salary = 60, admin = 0, vote = false, hasLicense = false, mayorCanSetSalary = 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_HIT = AddExtraTeam("Hitman", { color = Color(0, 148, 255, 255), model = "models/player/magnusson.mdl", description = [[You are the hitman. You may kill People for money! DO NOT RDM. YOU MAY RAID IF YOU HAVE A HIT ON THAT PERSON!]], weapons = {"m9k_m98b", "m9k_m92beretta", ""}, command = "Hit", max = 1, salary = 60, admin = 0, vote = true, hasLicense = false, }) TEAM_HITM = AddExtraTeam("Hitman [+]", { color = Color(0, 148, 255, 255), model = "models/player/magnusson.mdl", description = [[You are the hitman. You may kill People for money! DO NOT RDM. YOU MAY RAID IF YOU HAVE A HIT ON THAT PERSON!]], weapons = {"m9k_m98b", "m9k_m92beretta", ""}, command = "Hitp", max = 1,
[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 = [[The Citizen is the most basic level of society you can hold besides being a hobo. You have no specific role in city life.]], weapons = {}, command = "citizen", max = 0, salary = 45, admin = 0, vote = false, hasLicense = false, candemote = false, mayorCanSetSalary = true }) TEAM_SWAT = DarkRP.createJob("S.W.A.T", { color = Color(80, 45, 0, 255), model = "models/player/swat.mdl", description = [[This is a donator special job, your duty is to heal on of your wounded operatives. You should stay in the PD until backup is needed. Do everything you can to keep the city safe.]], weapons = {"arrest_stick", "unarrest_stick", "weapon_glock2", "weapon_ak472", "ls_sniper", "weapon_m42", "weapon_mp52", "stunstick", "door_ram", "weaponchecker"}, command = "swat", max = 3, salary = 100, admin = 0, vote = true, hasLicense = true, }) TEAM_SWATC = DarkRP.createJob("S.W.A.T Cheif", { color = Color(80, 45, 0, 255), model = "models/player/swat.mdl", description = [[This is a donator special job, your duty is to heal on of your wounded operatives. You should stay in the PD until backup is needed. Do everything you can to keep the city safe. You can heal your team, but it's not optinal unless theres no medics alive. If theres no mayor, you're in charge.]], weapons = {"arrest_stick", "unarrest_stick", "weapon_glock2", "weapon_ak472", "ls_sniper", "weapon_m42", "weapon_mp52", "stunstick", "door_ram", "weaponchecker", "med_kit"}, command = "swat", max = 1, salary = 200, admin = 0, vote = true, hasLicense = true, customCheck = function(ply) return table.HasValue({"Donator", "VIP", "VIP+", "DonerAdmin", "superadmin", "DonerMod", "Coder", "Owner"}, ply:GetNWString("usergroup")) end }) 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 his/her arrest. The Battering Ram can also unfreeze frozen props(if enabled). Type /wanted <name> to alert the public to the presence of a criminal. OR go to tab and warrant someone by clicking the warrant button]], weapons = {"arrest_stick", "unarrest_stick", "weapon_glock2", "stunstick", "door_ram", "weaponchecker"}, 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_POLICEM = 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 his/her arrest. The Battering Ram can also unfreeze frozen props(if enabled). Type /wanted <name> to alert the public to the presence of a criminal. OR go to tab and warrant someone by clicking the warrant button]], weapons = {"arrest_stick", "unarrest_stick", "weapon_glock2", "stunstick", "door_ram", "weaponchecker"}, command = "cpm", max = 4, salary = 65, admin = 0, vote = false, hasLicense = true, customCheck = function(ply) return table.HasValue({"Donator", "VIP", "VIP+", "DonerAdmin", "superadmin", "DonerMod", "Coder", "Owner"}, ply:GetNWString("usergroup")) end }) 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 = {}, command = "gangster", max = 3, salary = 45, admin = 0, vote = false, hasLicense = false, mayorCanSetSalary = 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"}, command = "mobboss", max = 1, salary = 60, admin = 0, vote = false, hasLicense = false, mayorCanSetSalary = 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_HIT = AddExtraTeam("Hitman", { color = Color(0, 148, 255, 255), model = "models/player/magnusson.mdl", description = [[You are the hitman. You may kill People for money! DO NOT RDM. YOU MAY RAID IF YOU HAVE A HIT ON THAT PERSON!]], weapons = {"m9k_m98b", "m9k_m92beretta", ""}, command = "Hit", max = 1, salary = 60, admin = 0, vote = true, hasLicense = false, }) TEAM_HITM = AddExtraTeam("Hitman [+]", { color = Color(0, 148, 255, 255), model = "models/player/magnusson.mdl", description = [[You are the hitman. You may kill People for money! DO NOT RDM. YOU MAY RAID IF YOU HAVE A HIT ON THAT PERSON!]], weapons = {"m9k_m98b", "m9k_m92beretta", ""}, command = "Hitp", max = 1, salary = 60, admin = 0, vote = false, hasLicense = false, customCheck = function(ply) return table.HasValue({"Donator", "VIP", "VIP
i was putting the name of the group and No it did not work
Why on earth would you open another topic about the same subject. I've already answered your mistake in your original thread.
it did not work xald
TEAM_SWAT remove the "," from "hasLicense = true," as well
Sorry, you need to Log In to post a reply to this thread.