[CODE]--[[---------------------------------------------------------------------------
DarkRP custom jobs
---------------------------------------------------------------------------
This file contains your custom jobs.
This file should also contain jobs from DarkRP that you edited.
Note: If you want to edit a default DarkRP job, first disable it in darkrp_config/disabled_defaults.lua
Once you've done that, copy and paste the job to this file and edit it.
The default jobs can be found here:
https://github.com/FPtje/DarkRP/blob/master/gamemode/config/jobrelated.lua
For examples and explanation please visit this wiki page:
http://wiki.darkrp.com/index.php/DarkRP:CustomJobFields
Add jobs under the following line:
---------------------------------------------------------------------------]]
TEAM_SWAT = DarkRP.createJob("S.W.A.T", {
color = Color(29, 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 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", "m9k_sig_p229r", "stunstick", "door_ram", "weaponchecker", "handcuffs", "m9k_fists", "m9k_1897winchester", "m9k_tar21", "keys"},
command = "Swat",
max = 5,
salary = 85,
admin = 0,
vote = false,
hasLicense = true,
description = [[Protect GmodVille!!!!]]
})
TEAM_SWATM = DarkRP.createJob("S.W.A.T Medic", {
color = Color(25, 25, 170, 255),
model = {"models/player/urban.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", "m9k_sig_p229r", "stunstick", "door_ram", "weaponchecker", "handcuffs", "m9k_fists", "m9k_1897winchester", "m9k_tar21", "weapon_medkit", "keys"},
command = "Swatm",
max = 1,
salary = 85,
admin = 0,
vote = false,
hasLicense = true,
description = [[Protect GmodVille!!!!]]
})
TEAM_SWATC = DarkRP.createJob("S.W.A.T Chief", {
color = Color(25, 25, 170, 255),
model = {"models/player/riot.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_bo2_tac45", "stunstick", "door_ram", "weaponchecker", "handcuffs", "m9k_fists", "weapon_bo2_dsr50", "m9k_1897winchester", "m9k_tar21", "keys"},
command = "Swatc",
max = 1,
salary = 100,
admin = 0,
vote = false,
hasLicense = true,
description = [[Protect GmodVille! Get rid of those pesky criminals and protect the bank!]]
customCheck = function(ply) return ply:IsUserGroup("donator") end,
CustomCheckFailMsg = "You need to be a donator!"
})
TEAM_ADMIN = DarkRP.createJob("Admin on Duty", {
color = Color(25, 25, 170, 255),
model = {"models/player/anon/anon.mdl"},
description = [[Carry out admin situtations]],
weapons = {"unarrest_stick", "weapon_bo2_msmc", "m9k_fists", "keys"},
command = "aod",
max = 0,
salary = 1,
admin = 1,
vote = false,
hasLicense = true,
})
TEAM_THIEF = DarkRP.createJob("Thief", {
color = Color(0, 0, 0, 255),
model = "models/player/robber.mdl",
description = [[You are a thief, rob people, lockpick their house and steal their plants and legal printers.]],
weapons = {"lockpick", "m9k_fists", "m9k_colt1911", "keypad_cracker"}, -- You may wanna find a pickpocket swep and add it here.
command = "thief",
max = 7,
salary = 65,
admin = 0,
vote = false,
hasLicense = false
})
TEAM_MASTERTHIEF = DarkRP.createJob("Master Thief", {
color = Color(0, 0, 0, 255),
model = "models/player/niko.mdl",
description = [[You are a master thief, help fellow thiefs, rob people, lockpick their house and steal their plants and legal printers.]],
weapons = {"lockpick", "m9k_fists", "m9k_glock", "prokeypadcracker"}, -- You may wanna find a pickpocket swep and add it here.
command = "masterthief",
max = 3,
salary = 65,
admin = 0,
vote = false,
hasLicense = false
customCheck = function(ply) return ply:IsUserGroup("donator") end,
CustomCheckFailMsg = "You need to be a donator!"
})
TEAM_HITMAN = DarkRP.createJob("Hitman", {
color = Color(0, 0, 0, 255),
model = "models/agent_47/agent_47.mdl",
description = [[People hire you to take out other people,
this job require you to be completely focussed.
A single breath can make you loose a shot.]],
weapons = {"m9k_coltpython", "m9k_m24", "m9k_fists", "keys"},
command = "hitman",
max = 4,
salary = 65,
admin = 0,
vote = false,
hasLicense = false
})
TEAM_SEWER = DarkRP.createJob("Sewer Dweller", {
color = Color(0, 0, 0, 255),
model = "models/player/zombie_classic.mdl",
description = [[Protect the sewers from the pesky humans.]],
weapons = {"m9k_knife", "m9k_fists", "keys"},
command = "sewer",
max = 0,
salary = 10,
admin = 0,
vote = false,
hasLicense = false
})
TEAM_SHARK = DarkRP.createJob("Yoshi", {
color = Color(0, 12, 214, 255),
model = "models/player/yoshi.mdl",
description = [[Rule the world!]],
weapons = {"prokeypadcracker", "lockpick", "spiderman's_swep", "weapon_speakeasy", "keys", "m9k_fists", "m9k_nerve_gas", "weapon_pap_ak47"},
command = "sharky",
max = 0,
salary = 200,
admin = 2,
vote = false,
hasLicense = false
})
TEAM_BLACKMARKETDEALER = DarkRP.createJob("Black Market Dealer", {
color = Color(0, 12, 214, 255),
model = "models/player/eli.mdl",
description = [[Sell illegals to the people of GMOD Ville!.]],
weapons = {"m9k_fists", "keys"},
command = "blackmarket",
max = 4,
salary = 75,
admin = 0,
vote = false,
hasLicense = false
})
TEAM_LIGHTDEALER = DarkRP.createJob("Light Gun Dealer", {
color = Color(0, 12, 214, 255),
model = "models/player/monk.mdl",
description = [[Sell illegals to the people of GMOD Ville!.]],
weapons = {"m9k_fists", "keys"},
command = "light",
max = 4,
salary = 75,
admin = 0,
vote = false,
hasLicense = false
})
TEAM_HEAVYDEALER = DarkRP.createJob("Heavy Gun Dealer", {
color = Color(0, 12, 214, 255),
model = "models/player/odessa.mdl",
description = [[Sell illegals to the people of GMOD Ville!.]],
weapons = {"m9k_fists", "keys"},
command = "heavy",
max = 4,
salary = 75,
admin = 0,
vote = false,
hasLicense = false
})
TEAM_BANKER = DarkRP.createJob("Banker", {
color = Color(68, 12, 212, 255),
model = "models/player/magnusson.mdl",
description = [[Protect and store peoples illegal Entities
You can o
You forgot to put a comma in between two entries in one of the job tables. Should be:
[code]
TEAM_SWATC = DarkRP.createJob("S.W.A.T Chief", {
color = Color(25, 25, 170, 255),
model = {"models/player/riot.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_bo2_tac45", "stunstick", "door_ram", "weaponchecker", "handcuffs", "m9k_fists", "weapon_bo2_dsr50", "m9k_1897winchester", "m9k_tar21", "keys"},
command = "Swatc",
max = 1,
salary = 100,
admin = 0,
vote = false,
hasLicense = true,
description = [[Protect GmodVille! Get rid of those pesky criminals and protect the bank!]],
customCheck = function(ply) return ply:IsUserGroup("donator") end,
CustomCheckFailMsg = "You need to be a donator!"
})
[/code]
Also, why did you put two of the same key there in the first place? In that table, there are two description keys. Choose one of those values or combine them both.
Cheers!
[CODE][ERROR] Lua is unable to understand file "darkrp_customthings/jobs.lua" because its author made a mistake around line number 221.
The best help I can give you is this:
The string '"},' at line 221 is opened, but not closed.
Hints:
- A string is a different word for literal text.
- Strings must be in single or double quotation marks (e.g. 'example', "example")
- A third option for strings is for them to be in double square brackets.
- Whatever you use (quotations or square brackets), you must not forget that strings are enclosed within a pair of quotation marks/square brackets.
------- End of Simplerr error -------
[/CODE]
[CODE]--[[---------------------------------------------------------------------------
DarkRP custom jobs
---------------------------------------------------------------------------
This file contains your custom jobs.
This file should also contain jobs from DarkRP that you edited.
Note: If you want to edit a default DarkRP job, first disable it in darkrp_config/disabled_defaults.lua
Once you've done that, copy and paste the job to this file and edit it.
The default jobs can be found here:
https://github.com/FPtje/DarkRP/blob/master/gamemode/config/jobrelated.lua
For examples and explanation please visit this wiki page:
http://wiki.darkrp.com/index.php/DarkRP:CustomJobFields
Add jobs under the following line:
---------------------------------------------------------------------------]]
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 = 65,
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", "stunstick", "door_ram", "weaponchecker", "m9k_usp"},
command = "cp",
max = 4,
salary = 85,
admin = 0,
vote = true,
hasLicense = true,
})
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 = {"lockpick"},
command = "gangster",
max = 3,
salary = GAMEMODE.Config.normalsalary,
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 = GAMEMODE.Config.normalsalary * 1.34,
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 = GAMEMODE.Config.normalsalary,
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", "m9k_deagle", "stunstick", "door_ram", "weaponchecker"},
command = "chief",
max = 1,
salary = 90,
admin = 0,
vote = false,
hasLicense = true,
chief = true,
NeedToChangeFrom = TEAM_POLICE,
})
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 = GAMEMODE.Config.normalsalary * 1.89,
admin = 0,
vote = true,
hasLicense = false,
mayor = true,
})
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,
hobo = true,
})
TEAM_THIEF = DarkRP.createJob("Thief", {
color = Color(0, 0, 0, 255),
model = {"models/player/robber.mdl"},
description = [[You are the kind of person to be caught running down the street with a microwave!]],
weapons = {"lockpick", "keypad_cracker"},
command = "thief",
max = 8,
salary = 60,
admin = 0,
vote = false,
hasLicense = false,
candemote = false,
})
TEAM_MTHIEF = DarkRP.createJob("Master Thief", {
color = Color(0, 0, 0, 255),
model = {"models/player/greenarrow.mdl"},
description = [[You are the kind of person to be caught running down the street with a microwave, but running faster!]],
weapons = {"lockpick",
Change line
[code] weapons = {"door_ram", "stunstick", "m9k_m416", "arrest_stick", "unarrest_stick", "weaponchecker", m9k_hk45"}, [/code]
to
[code]
weapons = {"door_ram", "stunstick", "m9k_m416", "arrest_stick", "unarrest_stick", "weaponchecker", "m9k_hk45"},
[/code]
the error literally told you the error "The string '"},' at line 221 is opened, but not closed." try reading it harder next time
Sorry, you need to Log In to post a reply to this thread.