Can someone please help me out? I'd gladly appreciate it.
//I guess I messed something up in the coding of the DarkRP/gamemode/config/jobrelated.lua
[B]Error Code On Server Startup:[/B]
[CODE]
["steamname"|2|STEAMID"] Lua Error:
[ERROR] gamemodes/darkrp/gamemode/config/jobrelated.lua:453: table index is nil
1. unknown - gamemodes/darkrp/gamemode/config/jobrelated.lua:453
2. include - [C]:-1
3. unknown - gamemodes/darkrp/gamemode/cl_init.lua:36[/CODE]
[B]Jobrelated.lua:[/B]
[CODE]/*--------------------------------------------------------
Default teams. If you make a team above the citizen team, people will spawn with that team!
--------------------------------------------------------*/
TEAM_CITIZEN = DarkRP.createJob("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 = [[Society: Citizen
Purpose: A Regular Roleplaying Class, An Every Day Citizen.
Can Raid And With?: No.
Extra Information: Default Class.
The !motd Overwrites All Jobs, And Should Take Effect During All Jobs.]],
weapons = {"flipoff"},
command = "citizen",
max = 0,
salary = 45,
admin = 0,
vote = false,
hasLicense = false,
candemote = false
})
TEAM_POLICE = DarkRP.createJob("Civil Protection", {
color = Color(25, 25, 170, 255),
model = {"models/player/police.mdl", "models/player/police_fem.mdl"},
description = [[Society: Government
Purpose: You have the power to arrest criminals and protect innocents.
Can Raid And With?: No. (Warranting Does Not Count As Raiding.)
Extra Information: No Random Warrents And Random Arresting As Usual.
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
The !motd Overwrites All Jobs, And Should Take Effect During All Jobs.The protector of every citizen that lives in the city.]],
weapons = {"arrest_stick", "unarrest_stick", "weapon_glock2", "stunstick", "door_ram", "weaponchecker"},
command = "cp",
max = 7,
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_CHIEF = DarkRP.createJob("Civil Protection Chief", {
color = Color(20, 20, 255, 255),
model = "models/player/combine_soldier_prisonguard.mdl",
description = [[Society: Government
Purpose: Coordinate the police force to enforce law in the city.
Can Raid And With?: No. (Warranting Does Not Count As Raiding.)
Extra Information: No Random Warrents And Random Arresting As Usual.
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.
The !motd Overwrites All Jobs, And Should Take Effect During All Jobs.The Chief is the leader of the Civil Protection unit.]],
weapons = {"arrest_stick", "unarrest_stick", "weapon_deagle2", "stunstick", "door_ram", "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_SWAT = AddExtraTeam("SWAT", Color(35, 0, 255, 255), "models/player/btb3.mdl", [[Society: Government
Purpose: You Are Higher Than The Police.
Can Raid And With?: No. (Warranting Does Not Count As Raiding.)
Extra Information: No Random Warrents And Random Arresting As Usual.
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.
The !motd Overwrites All Jobs, And Should Take Effect During All Jobs.The protector of every citizen that lives in the city.]], {"arrest_stick","unarrest_stick","weapon_deagle2","stunstick","door_ram","weaponchecker","weapon_mp52"}, "swat", 6, 70, 0, true, true, false)
TEAM_MARKSMAN = AddExtraTeam("SWAT Marksman", Color(0, 153, 255, 255), "models/jessev92/player/military/cod4_sniper.mdl", [[Society: Government
Purpose: You Are Higher Than The Police.
Can Raid And With?: No. (Warranting Does Not Count As Raiding.)
Extra Information: No Random Warrents And Random Arresting As Usual.
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.
The !motd Overwrites All Jobs, And Should Take Effect During All Jobs.The protector of every citizen that lives in the city.]], {"ls_sniper","door_ram","arrest_stick","unarrest_stick","weaponchecker","stunstick"}, "marksman", 2, 50, 0, true, true, false)
TEAM_GUN = DarkRP.createJob("Gun Dealer", {
color = Color(255, 102, 0, 255),
model = "models/player/monk.mdl",
description = [[Society: Dealer
Purpose: To Sell Guns/Entities For Any Price To The Public. You Could Be Arrested For This!
Can Raid And With?: No.
Extra Information: No Scamming. No Self-Supplying.
The !motd Overwrites All Jobs, And Should Take Effect During All Jobs.The protector of every citizen that lives in the city.]],
weapons = {},
command = "gundealer",
max = 2,
salary = 45,
admin = 0,
vote = false,
hasLicense = false
})
TEAM_BMD = DarkRP.createJob("Black Market Dealer", {
color = Color(204, 102, 0, 255),
model = "models/player/monk.mdl",
description = [[Society: Dealer
Purpose: To Sell Guns/Entities For Any Price To The Public. You Could Be Arrested For This!
Can Raid And With?: No.
Extra Information: No Scamming. No Self-Supplying.
The !motd Overwrites All Jobs, And Should Take Effect During All Jobs.The protector of every citizen that lives in the city.]],
weapons = {},
command = "bmddealer",
max = 2,
salary = 45,
admin = 0,
vote = false,
hasLicense = false
})
TEAM_BUILDER = AddExtraTeam("Builder", Color(153, 102, 51, 255), "models/player/blockdude.mdl", [[Society: Construction
Purpose: Allowed To Build At The Builder's Area (At Beach),
Can Raid And With?: No.
Extra Information:
This is a common issue with people who just copy & paste the code; the example code for doing CP tables is wrong. This thread might help you: [url]http://facepunch.com/showthread.php?t=1303956[/url]
[QUOTE=code_gs;43220130]This is a common issue with people who just copy & paste the code; the example code for doing CP tables is wrong. This thread might help you: [url]http://facepunch.com/showthread.php?t=1303956[/url][/QUOTE]
I couldn't thank you more than much man. Thanks for the quick response in helping me.
1 problem, where would shared.lua be located in, as there are multiple results in the DarkRP folder, on fixing behalf the problem of putting GM.CivilProtection into an earlier executed file, such as shared.lua..
Actually, it was changed since 2.4.5 (the thread was from DarkRP 2.4.5) and should work fine.
Try this code
[code]/*--------------------------------------------------------
Default teams. If you make a team above the citizen team, people will spawn with that team!
--------------------------------------------------------*/
TEAM_CITIZEN = DarkRP.createJob("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 = [[Society: Citizen
Purpose: A Regular Roleplaying Class, An Every Day Citizen.
Can Raid And With?: No.
Extra Information: Default Class.
The !motd Overwrites All Jobs, And Should Take Effect During All Jobs.]],
weapons = {"flipoff"},
command = "citizen",
max = 0,
salary = 45,
admin = 0,
vote = false,
hasLicense = false,
candemote = false
})
TEAM_POLICE = DarkRP.createJob("Civil Protection", {
color = Color(25, 25, 170, 255),
model = {"models/player/police.mdl", "models/player/police_fem.mdl"},
description = [[Society: Government
Purpose: You have the power to arrest criminals and protect innocents.
Can Raid And With?: No. (Warranting Does Not Count As Raiding.)
Extra Information: No Random Warrents And Random Arresting As Usual.
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
The !motd Overwrites All Jobs, And Should Take Effect During All Jobs.The protector of every citizen that lives in the city.]],
weapons = {"arrest_stick", "unarrest_stick", "weapon_glock2", "stunstick", "door_ram", "weaponchecker"},
command = "cp",
max = 7,
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_CHIEF = DarkRP.createJob("Civil Protection Chief", {
color = Color(20, 20, 255, 255),
model = "models/player/combine_soldier_prisonguard.mdl",
description = [[Society: Government
Purpose: Coordinate the police force to enforce law in the city.
Can Raid And With?: No. (Warranting Does Not Count As Raiding.)
Extra Information: No Random Warrents And Random Arresting As Usual.
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.
The !motd Overwrites All Jobs, And Should Take Effect During All Jobs.The Chief is the leader of the Civil Protection unit.]],
weapons = {"arrest_stick", "unarrest_stick", "weapon_deagle2", "stunstick", "door_ram", "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_SWAT = AddExtraTeam("SWAT", Color(35, 0, 255, 255), "models/player/btb3.mdl", [[Society: Government
Purpose: You Are Higher Than The Police.
Can Raid And With?: No. (Warranting Does Not Count As Raiding.)
Extra Information: No Random Warrents And Random Arresting As Usual.
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.
The !motd Overwrites All Jobs, And Should Take Effect During All Jobs.The protector of every citizen that lives in the city.]], {"arrest_stick","unarrest_stick","weapon_deagle2","stunstick","door_ram","weaponchecker","weapon_mp52"}, "swat", 6, 70, 0, true, true, false)
TEAM_MARKSMAN = AddExtraTeam("SWAT Marksman", Color(0, 153, 255, 255), "models/jessev92/player/military/cod4_sniper.mdl", [[Society: Government
Purpose: You Are Higher Than The Police.
Can Raid And With?: No. (Warranting Does Not Count As Raiding.)
Extra Information: No Random Warrents And Random Arresting As Usual.
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.
The !motd Overwrites All Jobs, And Should Take Effect During All Jobs.The protector of every citizen that lives in the city.]], {"ls_sniper","door_ram","arrest_stick","unarrest_stick","weaponchecker","stunstick"}, "marksman", 2, 50, 0, true, true, false)
TEAM_GUN = DarkRP.createJob("Gun Dealer", {
color = Color(255, 102, 0, 255),
model = "models/player/monk.mdl",
description = [[Society: Dealer
Purpose: To Sell Guns/Entities For Any Price To The Public. You Could Be Arrested For This!
Can Raid And With?: No.
Extra Information: No Scamming. No Self-Supplying.
The !motd Overwrites All Jobs, And Should Take Effect During All Jobs.The protector of every citizen that lives in the city.]],
weapons = {},
command = "gundealer",
max = 2,
salary = 45,
admin = 0,
vote = false,
hasLicense = false
})
TEAM_BMD = DarkRP.createJob("Black Market Dealer", {
color = Color(204, 102, 0, 255),
model = "models/player/monk.mdl",
description = [[Society: Dealer
Purpose: To Sell Guns/Entities For Any Price To The Public. You Could Be Arrested For This!
Can Raid And With?: No.
Extra Information: No Scamming. No Self-Supplying.
The !motd Overwrites All Jobs, And Should Take Effect During All Jobs.The protector of every citizen that lives in the city.]],
weapons = {},
command = "bmddealer",
max = 2,
salary = 45,
admin = 0,
vote = false,
hasLicense = false
})
TEAM_BUILDER = AddExtraTeam("Builder", Color(153, 102, 51, 255), "models/player/blockdude.mdl", [[Society: Construction
Purpose: Allowed To Build At The Builder's Area (At Beach),
Can Raid And With?: No.
Extra Information: Only Can Block Off Ending Of Tunnel And Passed Tunnel Area (Beach) At Building Area
Allowed To Let People Own/Rent Buildings In The Area.
The !motd Overwrites All Jobs, And Should Take Effect During All Jobs.The protector of every citizen that lives in the city.]], {}, "builder", 3, 50, 0, false, false, false)
TEAM_MEDIC = DarkRP.createJob("Medic", {
color = Color(47, 79
[QUOTE=code_gs;43220330]Actually, it was changed since 2.4.5 (the thread was from DarkRP 2.4.5) and should work fine.
Try this code
[code]/*--------------------------------------------------------
Default teams. If you make a team above the citizen team, people will spawn with that team!
--------------------------------------------------------*/
TEAM_CITIZEN = DarkRP.createJob("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 = [[Society: Citizen
Purpose: A Regular Roleplaying Class, An Every Day Citizen.
Can Raid And With?: No.
Extra Information: Default Class.
The !motd Overwrites All Jobs, And Should Take Effect During All Jobs.]],
weapons = {"flipoff"},
command = "citizen",
max = 0,
salary = 45,
admin = 0,
vote = false,
hasLicense = false,
candemote = false
})
TEAM_POLICE = DarkRP.createJob("Civil Protection", {
color = Color(25, 25, 170, 255),
model = {"models/player/police.mdl", "models/player/police_fem.mdl"},
description = [[Society: Government
Purpose: You have the power to arrest criminals and protect innocents.
Can Raid And With?: No. (Warranting Does Not Count As Raiding.)
Extra Information: No Random Warrents And Random Arresting As Usual.
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
The !motd Overwrites All Jobs, And Should Take Effect During All Jobs.The protector of every citizen that lives in the city.]],
weapons = {"arrest_stick", "unarrest_stick", "weapon_glock2", "stunstick", "door_ram", "weaponchecker"},
command = "cp",
max = 7,
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_CHIEF = DarkRP.createJob("Civil Protection Chief", {
color = Color(20, 20, 255, 255),
model = "models/player/combine_soldier_prisonguard.mdl",
description = [[Society: Government
Purpose: Coordinate the police force to enforce law in the city.
Can Raid And With?: No. (Warranting Does Not Count As Raiding.)
Extra Information: No Random Warrents And Random Arresting As Usual.
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.
The !motd Overwrites All Jobs, And Should Take Effect During All Jobs.The Chief is the leader of the Civil Protection unit.]],
weapons = {"arrest_stick", "unarrest_stick", "weapon_deagle2", "stunstick", "door_ram", "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_SWAT = AddExtraTeam("SWAT", Color(35, 0, 255, 255), "models/player/btb3.mdl", [[Society: Government
Purpose: You Are Higher Than The Police.
Can Raid And With?: No. (Warranting Does Not Count As Raiding.)
Extra Information: No Random Warrents And Random Arresting As Usual.
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.
The !motd Overwrites All Jobs, And Should Take Effect During All Jobs.The protector of every citizen that lives in the city.]], {"arrest_stick","unarrest_stick","weapon_deagle2","stunstick","door_ram","weaponchecker","weapon_mp52"}, "swat", 6, 70, 0, true, true, false)
TEAM_MARKSMAN = AddExtraTeam("SWAT Marksman", Color(0, 153, 255, 255), "models/jessev92/player/military/cod4_sniper.mdl", [[Society: Government
Purpose: You Are Higher Than The Police.
Can Raid And With?: No. (Warranting Does Not Count As Raiding.)
Extra Information: No Random Warrents And Random Arresting As Usual.
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.
The !motd Overwrites All Jobs, And Should Take Effect During All Jobs.The protector of every citizen that lives in the city.]], {"ls_sniper","door_ram","arrest_stick","unarrest_stick","weaponchecker","stunstick"}, "marksman", 2, 50, 0, true, true, false)
TEAM_GUN = DarkRP.createJob("Gun Dealer", {
color = Color(255, 102, 0, 255),
model = "models/player/monk.mdl",
description = [[Society: Dealer
Purpose: To Sell Guns/Entities For Any Price To The Public. You Could Be Arrested For This!
Can Raid And With?: No.
Extra Information: No Scamming. No Self-Supplying.
The !motd Overwrites All Jobs, And Should Take Effect During All Jobs.The protector of every citizen that lives in the city.]],
weapons = {},
command = "gundealer",
max = 2,
salary = 45,
admin = 0,
vote = false,
hasLicense = false
})
TEAM_BMD = DarkRP.createJob("Black Market Dealer", {
color = Color(204, 102, 0, 255),
model = "models/player/monk.mdl",
description = [[Society: Dealer
Purpose: To Sell Guns/Entities For Any Price To The Public. You Could Be Arrested For This!
Can Raid And With?: No.
Extra Information: No Scamming. No Self-Supplying.
The !motd Overwrites All Jobs, And Should Take Effect During All Jobs.The protector of every citizen that lives in the city.]],
weapons = {},
command = "bmddealer",
max = 2,
salary = 45,
admin = 0,
vote = false,
hasLicense = false
})
TEAM_BUILDER = AddExtraTeam("Builder", Color(153, 102, 51, 255), "models/player/blockdude.mdl", [[Society: Construction
Purpose: Allowed To Build At The Builder's Area (At Beach),
Can Raid And With?: No.
Extra Information: Only Can Block Off Ending Of Tunnel And Passed Tunnel Area (Beach) At Building Area
Allowed To Let People Own/Rent Buildings In The Area.
The !motd Overwrites All Jobs, And Should Take Effect During All Jobs.The protector of every citizen that lives in the city.]], {}, "builder", 3, 50, 0, false, false, false)
TEAM_MEDIC = DarkRP.createJob("Medic",
This may sound dumb, but since when were the job files called jobrelated.lua? I thought they were shared.lua or jobs.lua?
[QUOTE=CM Punk;43225604]This may sound dumb, but since when were the job files called jobrelated.lua? I thought they were shared.lua or jobs.lua?[/QUOTE]
No clue lol, would it make a difference if I changed it? Its a darkrp 2.5 core job content for the gamemode, should I just delete it all and put the jobrelated.lua into the darkrp modificationloader job.lua?
[QUOTE=BornPro;43227584]No clue lol, would it make a difference if I changed it? Its a darkrp 2.5 core job content for the gamemode, should I just delete it all and put the jobrelated.lua into the darkrp modificationloader job.lua?[/QUOTE]
No. Now try this code (backup your other code first)
[code]/*--------------------------------------------------------
Default teams. If you make a team above the citizen team, people will spawn with that team!
--------------------------------------------------------*/
TEAM_CITIZEN = DarkRP.createJob("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
})
TEAM_POLICE = DarkRP.createJob("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"},
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 = DarkRP.createJob("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
})
TEAM_MOB = DarkRP.createJob("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,
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 = DarkRP.createJob("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 = {},
command = "gundealer",
max = 2,
salary = 45,
admin = 0,
vote = false,
hasLicense = false
})
TEAM_MEDIC = DarkRP.createJob("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"},
command = "medic",
max = 3,
salary = 45,
admin = 0,
vote = false,
hasLicense = false,
medic = true
})
TEAM_CHIEF = DarkRP.createJob("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", "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 = DarkRP.createJob("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 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,
mayor = true,
help = {
"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 /lockdown to initiate a lockdown",
"Type /unlockdown to end a lockdown",
"Type /placelaws to place a screen containing the laws.",
"Type /addlaw and /removelaw to edit the laws."
}
})
TEAM_HOBO = DarkRP.createJob("Hobo", {
color = Color(80, 45, 0, 255),
model = "models/player/corpse1.mdl",
description = [[The lowest member of society. Everybody laughs at you.
You have no home.
Beg for your food and money
Sing for everyone who passes to get money
Make your o
[QUOTE=code_gs;43229004]No. Now try this code (backup your other code first)
[code]/*--------------------------------------------------------
Default teams. If you make a team above the citizen team, people will spawn with that team!
--------------------------------------------------------*/
TEAM_CITIZEN = DarkRP.createJob("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
})
TEAM_POLICE = DarkRP.createJob("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"},
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 = DarkRP.createJob("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
})
TEAM_MOB = DarkRP.createJob("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,
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 = DarkRP.createJob("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 = {},
command = "gundealer",
max = 2,
salary = 45,
admin = 0,
vote = false,
hasLicense = false
})
TEAM_MEDIC = DarkRP.createJob("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"},
command = "medic",
max = 3,
salary = 45,
admin = 0,
vote = false,
hasLicense = false,
medic = true
})
TEAM_CHIEF = DarkRP.createJob("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", "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 = DarkRP.createJob("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 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,
mayor = true,
help = {
"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 /lockdown to initiate a lockdown",
"Type /unlockdown to end a lockdown",
"Type /placelaws to place a screen containing the laws.",
"Type /addlaw and /removelaw to edit the laws."
}
})
TEAM_HOBO = DarkRP.createJob("Hobo", {
color = Color(80, 45, 0, 255),
model = "models/player/corpse1.mdl",
description = [[The lowest member of society. Everybody laughs at you.
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,
candemote = false,
[QUOTE=BornPro;43229024]Works alot man, thanks so much!![/QUOTE]
Actually, all I did was give you the default code. I just noticed that Falco now has a darkrpmodification Github to use for adding custom items. Download it and follow the instructions. Add all your custom jobs to jobs.lua here: [url]https://github.com/FPtje/darkrpmodification[/url]
Is it just me that gets irritated every time someone posts a question here?
[IMG]http://puu.sh/5HGzO[/IMG]
[IMG]http://puu.sh/5HGAj[/IMG]
[IMG]http://puu.sh/5HGBd[/IMG]
Does this just go over everyone's head?
[IMG]http://puu.sh/5R6aV.png[/IMG]
[QUOTE=rbreslow;43229229]Is it just me that gets irritated every time someone posts a question here?
[IMG]http://puu.sh/5HGzO[/IMG]
[IMG]http://puu.sh/5HGAj[/IMG]
[IMG]http://puu.sh/5HGBd[/IMG]
Does this just go over everyone's head?
[IMG]http://puu.sh/5R6aV.png[/IMG][/QUOTE]
Mod can take care of it. If it irritates you so much, report the post.
Sorry, you need to Log In to post a reply to this thread.