DarkRP - Where did all my jobs go? O.O

hey guys, I’ve got this server, and like 5 mins ago my DarkRP was fully functional.

  • Then i join my server, press f4 and enter the job section, but there’s no jobs, + you start as some creepy black man, without any texture at all…

wtf?

here’s my shared.lua:

/--------------------------------------------------------
Default teams. If you make a team above the citizen team, people will spawn with that team!
--------------------------------------------------------
/
TEAM_CITIZEN = AddExtraTeam(“Citizen”, Color(20, 150, 20, 255), “models/player/group01/male_01.mdl”, [[The Citizen is the most basic level of society you can hold
besides being a hobo.
You have no specific role in city life.]], {}, “citizen”, 0, 45, 0, false, false)

TEAM_POLICE = AddExtraTeam(“Civil Protection”, Color(25, 25, 170, 255), “models/player/police.mdl”, [[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]], {“tool_gun”, “arrest_stick”, “unarrest_stick”, “weapon_glock2”, “stunstick”, “door_ram”, “weaponchecker”}, “cp”, 4, 65, 0, true, true)

TEAM_GANG = AddExtraTeam(“Gangster”, Color(75, 75, 75, 255), “models/player/group03/male_01.mdl”, [[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.]], {“tool_gun”}, “gangster”, 3, 45, 0, false, false)

TEAM_MOB = AddExtraTeam(“Mob boss”, Color(25, 25, 25, 255), “models/player/gman_high.mdl”, [[The Mobboss is the boss of the criminals in the city.
With his power he coordinates the gangsters and forms an efficent crime
organization.
He has the ability to break into houses by using a lockpick.
The Mobboss also can unarrest you.]], {“tool_gun”, “lockpick”, “unarrest_stick”}, “mobboss”, 1, 60, 0, false, false)

TEAM_GUN = AddExtraTeam(“Gun Dealer”, Color(255, 140, 0, 255), “models/player/monk.mdl”, [[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]], {“tool_gun”}, “gundealer”, 2, 45, 0, false, false)

TEAM_MEDIC = AddExtraTeam(“Medic”, Color(47, 79, 79, 255), “models/player/kleiner.mdl”, [[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.]], {“tool_gun”, “med_kit”}, “medic”, 3, 45, 0, false, false)

TEAM_COOK = AddExtraTeam(“Cook”, Color(238, 99, 99, 255), “models/player/mossman.mdl”, [[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]], {“tool_gun”}, “cook”, 2, 45, 0, 0, false)

TEAM_CHIEF = AddExtraTeam(“Civil Protection Chief”, Color(20, 20, 255, 255), “models/player/combine_soldier_prisonguard.mdl”, [[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]], {“tool_gun”, “arrest_stick”, “unarrest_stick”, “weapon_deagle2”, “stunstick”, “door_ram”, “weaponchecker”}, “chief”, 1, 75, 0, false, true, TEAM_POLICE)

TEAM_MAYOR = AddExtraTeam(“Mayor”, Color(150, 20, 20, 255), “models/player/breen.mdl”, [[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]], {“tool_gun”, “keys”}, “mayor”, 1, 85, 0, true, false/, {TEAM_CHIEF, TEAM_POLICE}/)
/*

HOW TO MAKE AN EXTRA CLASS!!!

You can make extra classes here. Set everything up here and the rest will be done for you! no more editing 100 files without knowing what you’re doing!!!
Ok here’s how:

To make an extra class do this:
AddExtraTeam( “<NAME OF THE CLASS>”, Color(<red>, <Green>, <blue>, 255), “<Player model>” , [[<the description(it can have enters)>]], { “<first extra weapon>”,"<second extra weapon>", etc…}, “<chat command to become it(WITHOUT THE /!)>”, <maximum amount of this team> <the salary he gets>, 0/1/2 = public /admin only / superadmin only, <1/0/true/false Do you have to vote to become it>, true/false DOES THIS TEAM HAVE A GUN LICENSE?, TEAM: Which team you need to be to become this team)

The real example is here: it’s the Hobo: */

–VAR without /!!! The name the color(what you see in tab) the player model The description
TEAM_HOBO = AddExtraTeam(“Hobo”, Color(80, 45, 0, 255), “models/player/corpse1.mdl”, [[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]], {“weapon_bugbait”}, “hobo”, 5, 0, 0, false)
//No extra weapons say /hobo to become hobo Maximum hobo’s = 5 his salary = 0 because hobo’s don’t earn money. 0 = everyone can become hobo , false = you don’t have to vote to become hobo
// MAKE SURE THAT THERE IS NO / IN THE TEAM NAME OR IN THE TEAM COMMAND:
// TEAM_/DUDE IS WROOOOOONG !!!
// HAVING “/dude” IN THE COMMAND FIELD IS WROOOOOOOONG!!!
//ADD TEAMS UNDER THIS LINE:

TEAM_BANKER = AddExtraTeam(“Banker”, Color(60,238,234,255),“models/player/hostage_02.mdl”, [[Your job is to safely store things for people.
You can charge them for storing things.]], {“tool_gun”}, “banker”, 2, 50, 0, false)

TEAM_spy = AddExtraTeam(“Spy”, Color(255,255,0,255), “models/player/leet.mdl”, [[You spy or kill for your employer, weather it be the goverment, the mafia or just the ordinary joe.
Use your dead ringer to fake death. Your butterfly knife does miserable damage at front, but a stab in the back will kill anyone instantly. While under the effects of the fake death, a fake body will drop and you will become invisible for a short period of time,
use what little time you have to go in for the kill, but remember you have to uncloak before you can use any of your weapons, so be careful.]], {“tool_gun”, “tf_weapon_knife”}, “spy”, 1, 50, 0, false)

TEAM_computersalesman = AddExtraTeam(“Computer Salesman”, Color(0,153,255,255), “models/player/barney.mdl”, [[You sell computers you made with PC Mod]], {"tool_gun}, “computersalesman”, 3, 60, 0, false)

TEAM_thief = AddExtraTeam(“Thief”, Color(255,153,51,255), “models/player/eli.mdl”, [[You are a thief. You have a keypad cracker and a lockpick to hel you steal from unsuspecting victims.
Remember both of them make a sound and must load some time, so don’t get cahught. Steal shipments, then hide them. ]], {“keypad_cracker”, “weapon_lockpick”, “tool_gun”}, “thief”, 2, 45, 0, false)

TEAM_swat = AddExtraTeam(“S.W.A.T”, Color(0,0,255,255), “models/player/urban.mdl”, [[You are a S.W.A.T member. Use your tazer to immobolize enemies, while CPs arrest them. Use your MP5 to kill armed law-breakers.
You are a part of civil protection and as such, have access to /wanted and /warrant.]], {“weapon_stunstick”, “weapon_real_cs_mp5a4”, “door_ram”, “weaponchecker”, “tool_gun”}, “swat”, 3, 70, 0, true)

TEAM_DRUGZ = AddExtraTeam(“Drug Dealer”, Color(64,97,44,255), “models/player/group01/male_09.mdl”, [[Sell the illegal drugs but hide from the police.
Only beer, water and smokes are legal.]], {“tool_gun”}, “drugdealer”, 3

and shipments:

AddCustomShipment(“Desert eagle”, “models/weapons/w_pist_deagle.mdl”, “weapon_deagle2”, 215, 10, true, 215, true, {TEAM_GUN})
AddCustomShipment(“Fiveseven”, “models/weapons/w_pist_fiveseven.mdl”, “weapon_fiveseven2”, 0, 10, true, 205, true, {TEAM_GUN})
AddCustomShipment(“Glock”, “models/weapons/w_pist_glock18.mdl”, “weapon_glock2”, 0, 10, true, 160, true, {TEAM_GUN})
AddCustomShipment(“P228”, “models/weapons/w_pist_p228.mdl”, “weapon_p2282”, 0, 10, true, 185, true, {TEAM_GUN})

AddCustomShipment(“AK47”, “models/weapons/w_rif_ak47.mdl”, “weapon_ak472”, 2450, 10, false, nil, false, {TEAM_GUN})
AddCustomShipment(“MP5”, “models/weapons/w_smg_mp5.mdl”, “weapon_mp52”, 2200, 10, false, nil, false, {TEAM_GUN})
AddCustomShipment(“M4”, “models/weapons/w_rif_m4a1.mdl”, “weapon_m42”, 2450, 10, false, nil, false, {TEAM_GUN})
AddCustomShipment(“Mac 10”, “models/weapons/w_smg_mac10.mdl”, “weapon_mac102”, 2150, 10, false, nil, false, {TEAM_GUN})
AddCustomShipment(“Pump shotgun”, “models/weapons/w_shot_m3super90.mdl”, “weapon_pumpshotgun2”, 1750, 10, false, nil, false, {TEAM_GUN})
AddCustomShipment(“Sniper rifle”, “models/weapons/w_snip_g3sg1.mdl”, “ls_sniper”, 3750, 10, false, nil, false, {TEAM_GUN})

AddEntity(“Drug lab”, “drug_lab”, “models/props_lab/crematorcase.mdl”, 400, 3, “/buydruglab”, {TEAM_DRUGZ})
AddEntity(“Money printer”, “money_printer”, “models/props_c17/consolebox01a.mdl”, 1000, 2, “/buymoneyprinter”)
AddEntity(“Microwave”, “microwave”, “models/props/cs_office/microwave.mdl”, 400, 1, “/buymicrowave”, TEAM_COOK)
AddEntity(“Gun lab”, “gunlab”, “models/props_c17/TrapPropeller_Engine.mdl”, 500, 1, “/buygunlab”, TEAM_GUN)

  • Help me :S

You wrote Lua with bad syntax, causing an error meaning the gamemode failed and reverted to base. It also looks messy, so don’t expect me to debug it for you.

what exactly do you mean, by writing Lua with bad syntax? :s

Lua is a programming language - if you use incorrect syntax it will obviously throw an error. For example

[lua]Msg(“AFASFDASDAS” , , “ASDADD”…"
")[/lua] will give an error about an unexpected symbol near “,”

[lua]Msg(“AFASFDASDAS” , “ASDADD”…"
")[/lua] will work fine.

In response to your PM to me; I don’t currently have the time. Plus I don’t like DarkRP’s code.

So, I should remove the , ?

[editline]08:24PM[/editline]

That can’t be it. It worked fine like this earlier…

Does the console display any errors, when you load up the gamemode?

Yeah, it says this

“Couldn’t include file ‘shared.lua’ (File not found)”

But how’s that possible when I’m looking at it?

If you look into the darkrp/gamemode-folder, is the shared.lua in there?

Fixed for you:

[lua]
–[[--------------------------------------------------------
Default teams. If you make a team above the citizen team, people will spawn with that team!
--------------------------------------------------------]]
TEAM_CITIZEN = AddExtraTeam(“Citizen”, Color(20, 150, 20, 255), “models/player/group01/male_01.mdl”, [[The Citizen is the most basic level of society you can hold
besides being a hobo.
You have no specific role in city life.]], {}, “citizen”, 0, 45, 0, false, false)

TEAM_POLICE = AddExtraTeam(“Civil Protection”, Color(25, 25, 170, 255), “models/player/police.mdl”, [[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]], {“tool_gun”, “arrest_stick”, “unarrest_stick”, “weapon_glock2”, “stunstick”, “door_ram”, “weaponchecker”}, “cp”, 4, 65, 0, true, true)

TEAM_GANG = AddExtraTeam(“Gangster”, Color(75, 75, 75, 255), “models/player/group03/male_01.mdl”, [[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.]], {“tool_gun”}, “gangster”, 3, 45, 0, false, false)

TEAM_MOB = AddExtraTeam(“Mob boss”, Color(25, 25, 25, 255), “models/player/gman_high.mdl”, [[The Mobboss is the boss of the criminals in the city.
With his power he coordinates the gangsters and forms an efficent crime
organization.
He has the ability to break into houses by using a lockpick.
The Mobboss also can unarrest you.]], {“tool_gun”, “lockpick”, “unarrest_stick”}, “mobboss”, 1, 60, 0, false, false)

TEAM_GUN = AddExtraTeam(“Gun Dealer”, Color(255, 140, 0, 255), “models/player/monk.mdl”, [[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]], {“tool_gun”}, “gundealer”, 2, 45, 0, false, false)

TEAM_MEDIC = AddExtraTeam(“Medic”, Color(47, 79, 79, 255), “models/player/kleiner.mdl”, [[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.]], {“tool_gun”, “med_kit”}, “medic”, 3, 45, 0, false, false)

TEAM_COOK = AddExtraTeam(“Cook”, Color(238, 99, 99, 255), “models/player/mossman.mdl”, [[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]], {“tool_gun”}, “cook”, 2, 45, 0, 0, false)

TEAM_CHIEF = AddExtraTeam(“Civil Protection Chief”, Color(20, 20, 255, 255), “models/player/combine_soldier_prisonguard.mdl”, [[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]], {“tool_gun”, “arrest_stick”, “unarrest_stick”, “weapon_deagle2”, “stunstick”, “door_ram”, “weaponchecker”}, “chief”, 1, 75, 0, false, true, TEAM_POLICE)

TEAM_MAYOR = AddExtraTeam(“Mayor”, Color(150, 20, 20, 255), “models/player/breen.mdl”, [[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]], {“tool_gun”, “keys”}, “mayor”, 1, 85, 0, true, false–[[, {TEAM_CHIEF, TEAM_POLICE}]])

TEAM_HOBO = AddExtraTeam(“Hobo”, Color(80, 45, 0, 255), “models/player/corpse1.mdl”, [[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]], {“weapon_bugbait”}, “hobo”, 5, 0, 0, false)
–No extra weapons say /hobo to become hobo Maximum hobo’s = 5 his salary = 0 because hobo’s don’t earn money. 0 = everyone can become hobo , false = you don’t have to vote to become hobo
– MAKE SURE THAT THERE IS NO / IN THE TEAM NAME OR IN THE TEAM COMMAND:
– TEAM_/DUDE IS WROOOOOONG !!!
– HAVING “/dude” IN THE COMMAND FIELD IS WROOOOOOOONG!!!
–ADD TEAMS UNDER THIS LINE:

TEAM_BANKER = AddExtraTeam(“Banker”, Color(60,238,234,255),“models/player/hostage_02.mdl”, [[Your job is to safely store things for people.
You can charge them for storing things.]], {“tool_gun”}, “banker”, 2, 50, 0, false)

TEAM_spy = AddExtraTeam(“Spy”, Color(255,255,0,255), “models/player/leet.mdl”, [[You spy or kill for your employer, weather it be the goverment, the mafia or just the ordinary joe.
Use your dead ringer to fake death. Your butterfly knife does miserable damage at front, but a stab in the back will kill anyone instantly. While under the effects of the fake death, a fake body will drop and you will become invisible for a short period of time,
use what little time you have to go in for the kill, but remember you have to uncloak before you can use any of your weapons, so be careful.]], {“tool_gun”, “tf_weapon_knife”}, “spy”, 1, 50, 0, false)

TEAM_computersalesman = AddExtraTeam(“Computer Salesman”, Color(0,153,255,255), “models/player/barney.mdl”, [[You sell computers you made with PC Mod]], {“tool_gun”}, “computersalesman”, 3, 60, 0, false)

TEAM_thief = AddExtraTeam(“Thief”, Color(255,153,51,255), “models/player/eli.mdl”, [[You are a thief. You have a keypad cracker and a lockpick to hel you steal from unsuspecting victims.
Remember both of them make a sound and must load some time, so don’t get cahught. Steal shipments, then hide them. ]], {“keypad_cracker”, “weapon_lockpick”, “tool_gun”}, “thief”, 2, 45, 0, false)

TEAM_swat = AddExtraTeam(“S.W.A.T”, Color(0,0,255,255), “models/player/urban.mdl”, [[You are a S.W.A.T member. Use your tazer to immobolize enemies, while CPs arrest them. Use your MP5 to kill armed law-breakers.
You are a part of civil protection and as such, have access to /wanted and /warrant.]], {“weapon_stunstick”, “weapon_real_cs_mp5a4”, “door_ram”, “weaponchecker”, “tool_gun”}, “swat”, 3, 70, 0, true)

TEAM_DRUGZ = AddExtraTeam(“Drug Dealer”, Color(64,97,44,255), “models/player/group01/male_09.mdl”, [[Sell the illegal drugs but hide from the police.
Only beer, water and smokes are legal.]], {“tool_gun”}, “drugdealer”, 3)

and shipments:

AddCustomShipment(“Desert eagle”, “models/weapons/w_pist_deagle.mdl”, “weapon_deagle2”, 215, 10, true, 215, true, {TEAM_GUN})
AddCustomShipment(“Fiveseven”, “models/weapons/w_pist_fiveseven.mdl”, “weapon_fiveseven2”, 0, 10, true, 205, true, {TEAM_GUN})
AddCustomShipment(“Glock”, “models/weapons/w_pist_glock18.mdl”, “weapon_glock2”, 0, 10, true, 160, true, {TEAM_GUN})
AddCustomShipment(“P228”, “models/weapons/w_pist_p228.mdl”, “weapon_p2282”, 0, 10, true, 185, true, {TEAM_GUN})

AddCustomShipment(“AK47”, “models/weapons/w_rif_ak47.mdl”, “weapon_ak472”, 2450, 10, false, nil, false, {TEAM_GUN})
AddCustomShipment(“MP5”, “models/weapons/w_smg_mp5.mdl”, “weapon_mp52”, 2200, 10, false, nil, false, {TEAM_GUN})
AddCustomShipment(“M4”, “models/weapons/w_rif_m4a1.mdl”, “weapon_m42”, 2450, 10, false, nil, false, {TEAM_GUN})
AddCustomShipment(“Mac 10”, “models/weapons/w_smg_mac10.mdl”, “weapon_mac102”, 2150, 10, false, nil, false, {TEAM_GUN})
AddCustomShipment(“Pump shotgun”, “models/weapons/w_shot_m3super90.mdl”, “weapon_pumpshotgun2”, 1750, 10, false, nil, false, {TEAM_GUN})
AddCustomShipment(“Sniper rifle”, “models/weapons/w_snip_g3sg1.mdl”, “ls_sniper”, 3750, 10, false, nil, false, {TEAM_GUN})

AddEntity(“Drug lab”, “drug_lab”, “models/props_lab/crematorcase.mdl”, 400, 3, “/buydruglab”, {TEAM_DRUGZ})
AddEntity(“Money printer”, “money_printer”, “models/props_c17/consolebox01a.mdl”, 1000, 2, “/buymoneyprinter”)
AddEntity(“Microwave”, “microwave”, “models/props/cs_office/microwave.mdl”, 400, 1, “/buymicrowave”, TEAM_COOK)
AddEntity(“Gun lab”, “gunlab”, “models/props_c17/TrapPropeller_Engine.mdl”, 500, 1, “/buygunlab”, TEAM_GUN)
[/lua]

You missed a lot of things such as " and )

Omfg, thanks!

If you use the notepad ++ editor, the brace brackets along the left side help show if you have incorrect syntax (It’ll end too soon or not end at all)