• PLEASE help me out
    3 replies, posted
I am a complete moron when it comes to coding etc, but everything for my DarkRP server used to work correctly. Obviously the update broke it, and the only thing that isn't working is the shared.lua file. Everytime I join the game, the gamemode is broken and there are no jobs. I know what the problem is, I just can't seem to fix it. Bottom line, could anybody look through this mess and correct any mistakes? I know something is wrong, but ONLY in the custom jobs. The rest works fine. Something is broken in the custom jobs, so MAJOR THANKS and kudos if anybody could look through and fix it up. Here's my shared.lua file, the one in gamemodes/darkrp/gamemode/ [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 = [[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 = 15, admin = 0, vote = false, hasLicense = false }) TEAM_POLICE = AddExtraTeam("Police Officer", { color = Color(25, 25, 170, 255), model = "models/player/swat.mdl", description = [[The protector of every citizen that lives in the city . You have the power to arrest criminals and protect innocents. Hit them with your arrest baton to put them in jail Bash them with a stunstick and they might learn better than to disobey 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 this criminal OR go to tab and warrant someone by clicking the warrant button]], weapons = {"arrest_stick", "unarrest_stick", "weapon_fas_m9", "stunstick", "door_ram", "weaponchecker"}, command = "cp", max = 4, salary = 50, admin = 0, vote = true, hasLicense = true }) TEAM_GANG = AddExtraTeam("Gangster", { color = Color(75, 75, 75, 255), model = { "models/humans/mafia/male_02.mdl"}, description = [[The lowest person of crime. A gangster generally works for the Mobboss who runs the crime family. The Mobboss sets your agenda and you follow it or you might be punished.]], weapons = {}, command = "gangster", max = 10, salary = 25, 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 Mobboss is the boss of the criminals in the city. With his power he coordinates the gangsters and forms an efficent crime organization. The Mobboss also can unarrest you.]], weapons = {"weapon_fas_glock20", "unarrest_stick"}, command = "mobboss", max = 1, salary = 50, admin = 0, vote = false, hasLicense = false }) 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. However, make sure you aren't caught selling guns that are illegal to the public. /Buyshipment <name> to Buy a weapon shipment /Buygunlab to Buy a gunlab that spawns P228 pistols]], weapons = {}, command = "gundealer", max = 2, salary = 30, admin = 0, vote = false, hasLicense = false }) TEAM_MEDIC = AddExtraTeam("Medic", { color = Color(47, 79, 79, 255), model = "models/player/kleiner.mdl", description = [[With your medical knowledge, you heal players to proper health. Without a medic, people can not be healed. Left click with the Medical Kit to heal other players. Right click with the Medical Kit to heal yourself.]], weapons = {"med_kit"}, command = "medic", max = 3, salary = 45, admin = 0, vote = false, hasLicense = false }) TEAM_COOK = AddExtraTeam("Cook", { color = Color(238, 99, 99, 255), model = "models/player/mossman.mdl", description = [[As a cook, it is your responsibility to feed the other members of your city. You can spawn a microwave and sell the food you make: /Buymicrowave]], weapons = {}, command = "cook", max = 2, salary = 45, admin = 0, vote = false, hasLicense = false }) TEAM_CHIEF = AddExtraTeam("Police Chief", { color = Color(20, 20, 255, 255), model = "models/player/riot.mdl", description = [[The Chief is the leader of the Civil Protection unit. Coordinate the police forces to bring law to the city Hit them with arrest baton to put them in jail Bash them with a stunstick and they might learn better than to disobey 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 this criminal Type /jailpos to set the Jail Position]], weapons = {"arrest_stick", "unarrest_stick", "weapon_fas_deagle", "stunstick", "door_ram", "weaponchecker", "taser"}, command = "chief", max = 1, salary = 75, admin = 0, vote = false, hasLicense = true, NeedToChangeFrom = TEAM_POLICE }) TEAM_MAYOR = AddExtraTeam("Mayor", { color = Color(150, 20, 20, 255), model = "models/player/breen.mdl", description = [[The Mayor of the city creates laws to serve the greater good of the people. If you are the mayor you may create and accept warrants. Type /wanted <name> to warrant a player Type /jailpos to set the Jail Position Type /lockdown initiate a lockdown of the city. Everyone must be inside during a lockdown. The cops patrol the area /unlockdown to end a lockdown]], weapons = {}, command = "mayor", max = 1, salary = 85, admin = 0, vote = true, hasLicense = false }) TEAM_HOBO = AddExtraTeam("Hobo", { color = Color(80, 45, 0, 255), model = "models/player/corpse1.mdl", description = [[The lowest member of society. All people see you laugh. You have no home. Beg for your food and money Sing for everyone who passes to get money Make your own wooden home somewhere in a corner or outside someone else's door]], weapons = {"weapon_bugbait"}, command = "hobo", max = 5, salary = 0, admin = 0, vote = false, hasLicense = false }) //ADD CUSTOM TEAMS UNDER THIS LINE: TEAM_GUARD = AddExtraTeam("Security Guard", { color = Color(238, 99, 99, 255), model = "models/player/odessa.mdl", description = [[You are not a cop! Work for a business! Charge money to guard shops!.]], weapons = {"stunstick"}, command = "guard", max = 2, salary = 25, admin = 0, vote = false, hasLicense = false }) TEAM_SWAT = AddExtraTeam("SWAT", { color = Color(0, 204, 255, 255), model = "models/player/urban.mdl", description = [[SWAT enters when the police can no longer handle a situation, like a hostage situation. You cannot arrest or unarrest. Protect the Mayor if there is one. ABUSE=BAN]], weapons = {"weapon_fas_mp5"}, command = "swat", max = 2, salary = 40, admin = 0, vote = false, hasLicense = true, NeedToChangeFrom = TEAM_POLICE }) TEAM_HITMAN = AddExtraTeam("Assassin", { color = Color(153, 51, 51, 255), model = "models/player/hostage/hostage_01.mdl", description = [[Kill people for money. ABUSE=BAN.]], weapons = {"weapon_fas_m24"}, command = "hitman", max = 1, salary = 20, admin = 0, vote = false, hasLicense = false }) TEAM_TERRORIS
use code tags for code.. thats why they are there also you do realise that when you join it TELLS you the error in both the client and server consoles
Yes, and it turned out to be a few stupid errors, like not having comma's etc. Fixed everything.
If it doesnt work there is an errror, get to job and it should give an error, otherwise i should work.
Sorry, you need to Log In to post a reply to this thread.