Jobs Dont work (I messed up my last thread so sry)
30 replies, posted
I made all my jobs the way I think they should be made but they dont show in the f4 menu. Just the default jobs. here my code strait from jobs.lua.
--[[---------------------------------------------------------------------------
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:
[url]https://github.com/FPtje/DarkRP/blob/master/gamemode/config/jobrelated.lua[/url]
For examples and explanation please visit this wiki page:
[url]http://wiki.darkrp.com/index.php/DarkRP:CustomJobFields[/url]
Add your custom jobs under the following line:
---------------------------------------------------------------------------]]
TEAM_THIEF = DarkRP.createJob("Thief", {
color = Color(0, 0, 0, 255),
model = "models/player/phoenix.mdl",
description = [[You are a thief, rob people, lockpick their house and steal their plants and legal printers.]],
weapons = {"m9k_fists", "lockpick", "keypad_cracker"}, -- You may want to find a pickpocket swep and add it here.
command = "thief",
max = 4,
salary = 65,
admin = 0,
vote = false,
hasLicense = false,
category = "Citizens",
})
TEAM_HITMAN = DarkRP.createJob("Hitman", {
color = Color(0, 0, 0, 255),
model = "models/player/leet.mdl",
description = [[People hire you to take out other people.]],
weapons = {"m9k_fists", "m9k_m24"},
command = "hitman",
max = 1,
salary = 100,
admin = 0,
vote = false,
hasLicense = false,
category = "Citizens",
})
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 = {"m9k_fists", "lockpick", "m9k_tec9"},
command = "gangster",
max = 3,
salary = 60,
admin = 0,
vote = false,
hasLicense = false,
category = "Gangsters",
})
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 = {"m9k_fists", "lockpick", "unarrest_stick"},
command = "mobboss",
max = 1,
salary = 175,
admin = 0,
vote = false,
hasLicense = false,
category = "Gangsters",
})
TEAM_SS = DarkRP.createJob("Secret Service", {
color = Color(100, 20, 20, 255),
model = "models/player/combine_soldier_prisonguard.mdl",
description = [[You are responsible for protecting the mayor.
Take care of the old fellow, he is vulnerable to terrorists all the time! Before he enters a room, you need to make sure its secure.]],
weapons = {"m9k_fists", "m9k_deagle", "stunstick", "weaponchecker"},
command = "ss",
max = 2,
salary = 250,
admin = 0,
vote = true,
hasLicense = false,
ammo = {
["pistol"] = 60,
},
category = "Civil Protection",
})
TEAM_SWAT = DarkRP.createJob("Swat", {
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 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 = {"m9k_fists", "arrest_stick", "unarrest_stick", "m9k_m92beretta", "m9k_honeybadger", "stunstick", "door_ram", "weaponchecker"},
command = "Swat",
max = 4,
salary = 400,
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"
},
category = "Civil Protection",
})
TEAM_MAYOR = DarkRP.createJob("Mayor", {
color = Color(150, 20, 20, 255),
model = "models/player/breen.mdl",
description = [[You are the mayor of DarkRP.]],
weapons = {"m9k_fists", "unarrest_stick", "arrest_stick"},
command = "mayor",
max = 1,
salary = 150 ,
admin = 0,
vote = true,
hasLicense = false,
mayor = true,
category = "Civil Protection",
})
TEAM_MD = DarkRP.createJob("Mayors Daughter", {
color = Color(255,100,100,255),
model = "models/player/alyx.mdl",
description = [[You are the mayors daughter, walk around with your dad
just chill around. But be careful, you never know when somebody
is waiting to kidnap you!]],
weapons = {"weapon_fists"},
command = "mayorsdaughter",
max = 1,
salary = 80,
admin = 0,
vote = false,
hasLicense = false
})
TEAM_GUARD = DarkRP.createJob("Guard", {
color = Color(0,200,50,255),
model = "models/player/barney.mdl",
description = [[People will pay for protection, use your weapon or buy one from the local gundealer.]],
weapons = {"m9k_fists", "m9k_deagle"},
command = "guard",
max = 1,
salary = 85,
admin = 0,
vote = false,
hasLicense = true,
category = "Citizens",
})
TEAM_TERROR = DarkRP.createJob("Terrorist", {
color = Color(255, 140, 0, 255),
model = "models/player/guerilla.mdl",
description = [[You terrorise the civilians.]],
weapons = {"m9k_fists", "m9k_ak47", "m9k_suicide_bomb"},
command = "terrorist",
max = 3,
salary = 150,
admin = 0,
vote = true,
hasLicense = false,
category = "Citizens",
})
TEAM_TERRORL = DarkRP.createJob("Terrorist Leader", {
color = Color(255, 140, 0, 255),
model = "models/player/guerilla.mdl",
description = [[You are the Leader of the terrorist group.]],
weapons = {"weapon_fists", "m9k_ak47", "m9k_ied_detonator", "m9k_suicide_bomb", "m9k_proxy_mine", "m9k_rpg7"}
command = "terroristl",
max = 1,
salary = 150,
admin = 0,
vote = true,
hasLicense = false,
category = "Citizens",
})
TEAM_MTHIEF = DarkRP.createJob("Master Thief", {
color = Color(0, 0, 0, 255),
model = "models/player/phoenix.mdl",
description = [[You are a thief, rob people, lockpick their house and steal their plants and legal printers.]],
weapons = {"m9k_fists", "lockpick", "m9k_tec9", "keypad_cracker"}, -- You may wanna find a pickpocket swep and add it here.
command = "mthief",
max = 4,
salary = 110,
admin = 0,
vote = true,
hasLicense = false,
category = "Citizens",
})
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 = {"m9k_fists", "m9k_colt1911"},
command = "gundealer",
max = 2,
salary = 120,
admin = 0,
vote = false,
hasLicense = false,
category = "Citizens",
})
TEAM_MEDIC = DarkRP.createJob("Medic", {
color = Color(47, 79, 79, 255),
Wrap your code in [CODE] or [lua] tags.
And if there are any Lua errors you should paste them here
[code]This works only if you have Rape Addon
TEAM_RAPE = DarkRP.createJob("Rapist", {[/code]
Either remove the first line or comment it out.
Sorry im very new to this stuff.
Like this:
[TEAM_THIEF = DarkRP.createJob("Thief", {
color = Color(0, 0, 0, 255),
model = "models/player/phoenix.mdl",
description = [[You are a thief, rob people, lockpick their house and steal their plants and legal printers.]],
weapons = {"m9k_fists", "lockpick", "keypad_cracker"}, -- You may want to find a pickpocket swep and add it here.
command = "thief",
max = 4,
salary = 65,
admin = 0,
vote = false,
hasLicense = false,
category = "Citizens",
})]
[editline]21st May 2017[/editline]
What do you mean by "or [lua] tags."
[QUOTE=SwagStag77;52257841]Sorry im very new to this stuff.
Like this:
[TEAM_THIEF = DarkRP.createJob("Thief", {
color = Color(0, 0, 0, 255),
model = "models/player/phoenix.mdl",
description = [[You are a thief, rob people, lockpick their house and steal their plants and legal printers.]],
weapons = {"m9k_fists", "lockpick", "keypad_cracker"}, -- You may want to find a pickpocket swep and add it here.
command = "thief",
max = 4,
salary = 65,
admin = 0,
vote = false,
hasLicense = false,
category = "Citizens",
})]
[editline]21st May 2017[/editline]
What do you mean by "or [lua] tags."[/QUOTE]
Dude.... wat
[quote][CODE]Whatever code you want here[/CODE ][/quote]
Or, alternatively:
[quote][lua]Whatever code you want here[/lua ][/quote]
But it doesn't matter because Sean Bean gave you the answer already:
[QUOTE=Sean Bean;52250602][code]This works only if you have Rape Addon
TEAM_RAPE = DarkRP.createJob("Rapist", {[/code]
Either remove the first line or comment it out.[/QUOTE]
I completly removed the rapist job, restarted the server and the are only the default jobs.
[ERROR] addons/darkrpmodification-master/lua/darkrp_customthings/jobs.lua:18: unexpected symbol near '['
1. unknown - addons/darkrpmodification-master/lua/darkrp_customthings/jobs.lua:0
[editline]21st May 2017[/editline]
heres line 18 job
[TEAM_THIEF = DarkRP.createJob("Thief", {
color = Color(0, 0, 0, 255),
model = "models/player/phoenix.mdl",
description = [[You are a thief, rob people, lockpick their house and steal their plants and legal printers.]],
weapons = {"m9k_fists", "lockpick", "keypad_cracker"}, -- You may want to find a pickpocket swep and add it here.
command = "thief",
max = 4,
salary = 65,
admin = 0,
vote = false,
hasLicense = false,
category = "Citizens",
})]
Remove the brackets, you misunderstood what he meant. When you post code on these forums, wrap them in [ lua ] and [ /lua ] before and after the code to format them correctly here.
oh, i put the lua stuff around my jobs or what.
thx
[QUOTE=SwagStag77;52257886]I completly removed the rapist job, restarted the server and the are only the default jobs.
[ERROR] addons/darkrpmodification-master/lua/darkrp_customthings/jobs.lua:18: unexpected symbol near '['
1. unknown - addons/darkrpmodification-master/lua/darkrp_customthings/jobs.lua:0
[editline]21st May 2017[/editline]
heres line 18 job
[TEAM_THIEF = DarkRP.createJob("Thief", {
color = Color(0, 0, 0, 255),
model = "models/player/phoenix.mdl",
description = [[You are a thief, rob people, lockpick their house and steal their plants and legal printers.]],
weapons = {"m9k_fists", "lockpick", "keypad_cracker"}, -- You may want to find a pickpocket swep and add it here.
command = "thief",
max = 4,
salary = 65,
admin = 0,
vote = false,
hasLicense = false,
category = "Citizens",
})][/QUOTE]
Why did you put brackets in your code.
Just do what Sean Bean told you.
Literally just remove the one line he told you to.
This is not difficult
[QUOTE=KingofBeast;52257895]Remove the brackets, you misunderstood what he meant. When you post code on these forums, wrap them in [ lua ] and [ /lua ] before and after the code to format them correctly here.[/QUOTE]
Beat me to it. I just logged in to help :happy:
[QUOTE=SwagStag77;52257918]I did but i still get an error[/QUOTE]
Post your new error please
[QUOTE=SwagStag77;52257918]I did but i still get an error
[editline]21st May 2017[/editline]
how do you want me to wrap it. I don't understand.
[lua] TEAM_THIEF = DarkRP.createJob("Thief", {
color = Color(0, 0, 0, 255),
model = "models/player/phoenix.mdl",
description = [[You are a thief, rob people, lockpick their house and steal their plants and legal printers.]],
weapons = {"m9k_fists", "lockpick", "keypad_cracker"}, -- You may want to find a pickpocket swep and add it here.
command = "thief",
max = 4,
salary = 65,
admin = 0,
vote = false,
hasLicense = false,
category = "Citizens",
}) [/lua]
the error is the same
[ERROR] addons/darkrpmodification-master/lua/darkrp_customthings/jobs.lua:18: unexpected symbol near '['
1. unknown - addons/darkrpmodification-master/lua/darkrp_customthings/jobs.lua:0[/QUOTE]
Did you restart your server?
I did but i still get an error
[editline]21st May 2017[/editline]
how do you want me to wrap it. I don't understand.
[lua] TEAM_THIEF = DarkRP.createJob("Thief", {
color = Color(0, 0, 0, 255),
model = "models/player/phoenix.mdl",
description = [[You are a thief, rob people, lockpick their house and steal their plants and legal printers.]],
weapons = {"m9k_fists", "lockpick", "keypad_cracker"}, -- You may want to find a pickpocket swep and add it here.
command = "thief",
max = 4,
salary = 65,
admin = 0,
vote = false,
hasLicense = false,
category = "Citizens",
}) [/lua]
the error is the same
[ERROR] addons/darkrpmodification-master/lua/darkrp_customthings/jobs.lua:18: unexpected symbol near '['
1. unknown - addons/darkrpmodification-master/lua/darkrp_customthings/jobs.lua:0
[editline]21st May 2017[/editline]
Yea i restarted my server. il do it again though
[editline]21st May 2017[/editline]
restarting didnt do anything
Paste the entire file, if you don't mind.
[QUOTE=KingofBeast;52257981]Paste the entire file, if you don't mind.[/QUOTE]
--[[---------------------------------------------------------------------------
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:
[url]https://github.com/FPtje/DarkRP/blob/master/gamemode/config/jobrelated.lua[/url]
For examples and explanation please visit this wiki page:
[url]http://wiki.darkrp.com/index.php/DarkRP:CustomJobFields[/url]
Add your custom jobs under the following line:
---------------------------------------------------------------------------]]
[lua] TEAM_THIEF = DarkRP.createJob("Thief", {
color = Color(0, 0, 0, 255),
model = "models/player/phoenix.mdl",
description = [[You are a thief, rob people, lockpick their house and steal their plants and legal printers.]],
weapons = {"m9k_fists", "lockpick", "keypad_cracker"}, -- You may want to find a pickpocket swep and add it here.
command = "thief",
max = 4,
salary = 65,
admin = 0,
vote = false,
hasLicense = false,
category = "Citizens",
}) [/lua]
[lua] TEAM_HITMAN = DarkRP.createJob("Hitman", {
color = Color(0, 0, 0, 255),
model = "models/player/leet.mdl",
description = [[People hire you to take out other people.]],
weapons = {"m9k_fists", "m9k_m24"},
command = "hitman",
max = 1,
salary = 100,
admin = 0,
vote = false,
hasLicense = false,
category = "Citizens",
})[/lua]
[lua] 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 = {"m9k_fists", "lockpick", "m9k_tec9"},
command = "gangster",
max = 3,
salary = 60,
admin = 0,
vote = false,
hasLicense = false,
category = "Gangsters",
})[/lua]
[lua] 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 = {"m9k_fists", "lockpick", "unarrest_stick"},
command = "mobboss",
max = 1,
salary = 175,
admin = 0,
vote = false,
hasLicense = false,
category = "Gangsters",
})[/lua]
[lua] TEAM_SS = DarkRP.createJob("Secret Service", {
color = Color(100, 20, 20, 255),
model = "models/player/combine_soldier_prisonguard.mdl",
description = [[You are responsible for protecting the mayor.
Take care of the old fellow, he is vulnerable to terrorists all the time! Before he enters a room, you need to make sure its secure.]],
weapons = {"m9k_fists", "m9k_deagle", "stunstick", "weaponchecker"},
command = "ss",
max = 2,
salary = 250,
admin = 0,
vote = true,
hasLicense = false,
ammo = {
["pistol"] = 60,
},
category = "Civil Protection",
})[/lua]
[lua] TEAM_SWAT = DarkRP.createJob("Swat", {
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 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 = {"m9k_fists", "arrest_stick", "unarrest_stick", "m9k_m92beretta", "m9k_honeybadger", "stunstick", "door_ram", "weaponchecker"},
command = "Swat",
max = 4,
salary = 400,
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"
},
category = "Civil Protection",
})[/lua]
[lua] TEAM_MAYOR = DarkRP.createJob("Mayor", {
color = Color(150, 20, 20, 255),
model = "models/player/breen.mdl",
description = [[You are the mayor of DarkRP.]],
weapons = {"m9k_fists", "unarrest_stick", "arrest_stick"},
command = "mayor",
max = 1,
salary = 150 ,
admin = 0,
vote = true,
hasLicense = false,
mayor = true,
category = "Civil Protection",
})[/lua]
[lua] TEAM_MD = DarkRP.createJob("Mayors Daughter", {
color = Color(255,100,100,255),
model = "models/player/alyx.mdl",
description = [[You are the mayors daughter, walk around with your dad
just chill around. But be careful, you never know when somebody
is waiting to kidnap you!]],
weapons = {"weapon_fists"},
command = "mayorsdaughter",
max = 1,
salary = 80,
admin = 0,
vote = false,
hasLicense = false
})[/lua]
[lua] TEAM_GUARD = DarkRP.createJob("Guard", {
color = Color(0,200,50,255),
model = "models/player/barney.mdl",
description = [[People will pay for protection, use your weapon or buy one from the local gundealer.]],
weapons = {"m9k_fists", "m9k_deagle"},
command = "guard",
max = 1,
salary = 85,
admin = 0,
vote = false,
hasLicense = true,
category = "Citizens",
})[/lua]
[lua] TEAM_TERROR = DarkRP.createJob("Terrorist", {
color = Color(255, 140, 0, 255),
model = "models/player/guerilla.mdl",
description = [[You terrorise the civilians.]],
weapons = {"m9k_fists", "m9k_ak47", "m9k_suicide_bomb"},
command = "terrorist",
max = 3,
salary = 150,
admin = 0,
vote = true,
hasLicense = false,
category = "Citizens",
})[/lua]
[lua] TEAM_TERRORL = DarkRP.createJob("Terrorist Leader", {
color = Color(255, 140, 0, 255),
model = "models/player/guerilla.mdl",
description = [[You are the Leader of the terrorist group.]],
weapons = {"weapon_fists", "m9k_ak47", "m9k_ied_detonator", "m9k_suicide_bomb", "m9k_proxy_mine", "m9k_rpg7"}
command = "terroristl",
max = 1,
salary = 150,
admin = 0,
vote = true,
hasLicense = false,
category = "Citizens",
})[/lua]
[lua] TEAM_MTHIEF = DarkRP.createJob("Master Thief", {
color = Color(0, 0, 0, 255),
model = "models/player/phoenix.mdl",
description = [[You are a thief, rob people, lockpick the
[QUOTE=SwagStag77;52258006]--[[---------------------------------------------------------------------------
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:
[url]https://github.com/FPtje/DarkRP/blob/master/gamemode/config/jobrelated.lua[/url]
For examples and explanation please visit this wiki page:
[url]http://wiki.darkrp.com/index.php/DarkRP:CustomJobFields[/url]
Add your custom jobs under the following line:
---------------------------------------------------------------------------]]
[lua] TEAM_THIEF = DarkRP.createJob("Thief", {
color = Color(0, 0, 0, 255),
model = "models/player/phoenix.mdl",
description = [[You are a thief, rob people, lockpick their house and steal their plants and legal printers.]],
weapons = {"m9k_fists", "lockpick", "keypad_cracker"}, -- You may want to find a pickpocket swep and add it here.
command = "thief",
max = 4,
salary = 65,
admin = 0,
vote = false,
hasLicense = false,
category = "Citizens",
}) [/lua]
[lua] TEAM_HITMAN = DarkRP.createJob("Hitman", {
color = Color(0, 0, 0, 255),
model = "models/player/leet.mdl",
description = [[People hire you to take out other people.]],
weapons = {"m9k_fists", "m9k_m24"},
command = "hitman",
max = 1,
salary = 100,
admin = 0,
vote = false,
hasLicense = false,
category = "Citizens",
})[/lua]
[lua] 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 = {"m9k_fists", "lockpick", "m9k_tec9"},
command = "gangster",
max = 3,
salary = 60,
admin = 0,
vote = false,
hasLicense = false,
category = "Gangsters",
})[/lua]
[lua] 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 = {"m9k_fists", "lockpick", "unarrest_stick"},
command = "mobboss",
max = 1,
salary = 175,
admin = 0,
vote = false,
hasLicense = false,
category = "Gangsters",
})[/lua]
[lua] TEAM_SS = DarkRP.createJob("Secret Service", {
color = Color(100, 20, 20, 255),
model = "models/player/combine_soldier_prisonguard.mdl",
description = [[You are responsible for protecting the mayor.
Take care of the old fellow, he is vulnerable to terrorists all the time! Before he enters a room, you need to make sure its secure.]],
weapons = {"m9k_fists", "m9k_deagle", "stunstick", "weaponchecker"},
command = "ss",
max = 2,
salary = 250,
admin = 0,
vote = true,
hasLicense = false,
ammo = {
["pistol"] = 60,
},
category = "Civil Protection",
})[/lua]
[lua] TEAM_SWAT = DarkRP.createJob("Swat", {
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 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 = {"m9k_fists", "arrest_stick", "unarrest_stick", "m9k_m92beretta", "m9k_honeybadger", "stunstick", "door_ram", "weaponchecker"},
command = "Swat",
max = 4,
salary = 400,
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"
},
category = "Civil Protection",
})[/lua]
[lua] TEAM_MAYOR = DarkRP.createJob("Mayor", {
color = Color(150, 20, 20, 255),
model = "models/player/breen.mdl",
description = [[You are the mayor of DarkRP.]],
weapons = {"m9k_fists", "unarrest_stick", "arrest_stick"},
command = "mayor",
max = 1,
salary = 150 ,
admin = 0,
vote = true,
hasLicense = false,
mayor = true,
category = "Civil Protection",
})[/lua]
[lua] TEAM_MD = DarkRP.createJob("Mayors Daughter", {
color = Color(255,100,100,255),
model = "models/player/alyx.mdl",
description = [[You are the mayors daughter, walk around with your dad
just chill around. But be careful, you never know when somebody
is waiting to kidnap you!]],
weapons = {"weapon_fists"},
command = "mayorsdaughter",
max = 1,
salary = 80,
admin = 0,
vote = false,
hasLicense = false
})[/lua]
[lua] TEAM_GUARD = DarkRP.createJob("Guard", {
color = Color(0,200,50,255),
model = "models/player/barney.mdl",
description = [[People will pay for protection, use your weapon or buy one from the local gundealer.]],
weapons = {"m9k_fists", "m9k_deagle"},
command = "guard",
max = 1,
salary = 85,
admin = 0,
vote = false,
hasLicense = true,
category = "Citizens",
})[/lua]
[lua] TEAM_TERROR = DarkRP.createJob("Terrorist", {
color = Color(255, 140, 0, 255),
model = "models/player/guerilla.mdl",
description = [[You terrorise the civilians.]],
weapons = {"m9k_fists", "m9k_ak47", "m9k_suicide_bomb"},
command = "terrorist",
max = 3,
salary = 150,
admin = 0,
vote = true,
hasLicense = false,
category = "Citizens",
})[/lua]
[lua] TEAM_TERRORL = DarkRP.createJob("Terrorist Leader", {
color = Color(255, 140, 0, 255),
model = "models/player/guerilla.mdl",
description = [[You are the Leader of the terrorist group.]],
weapons = {"weapon_fists", "m9k_ak47", "m9k_ied_detonator", "m9k_suicide_bomb", "m9k_proxy_mine", "m9k_rpg7"}
command = "terroristl",
max = 1,
salary = 150,
admin = 0,
vote = true,
hasLicense = false,
category = "Citizens",
})[/lua]
[lua] TEAM_MTHIEF = DarkRP.createJob("Master Thief", {
color = Color(0, 0, 0, 255),
model = "models/player/phoenix.mdl",
description = [[You are a thief, rob people, lockpick their house and steal their plants and legal printers.]],
I wrapped it with [lua] [/lua]. I wrapped each job.
[editline]21st May 2017[/editline]
I wrapped it with [lua]
but I did each job individually.
[lua] is just a forum tag for displaying code. You're not supposed to actually put it in your code.
then how do I fix my jobs.
[QUOTE=SwagStag77;52258650]then how do I fix my jobs.[/QUOTE]
You get rid of the [lua] tags you put in them.
Jesus H. Christ.
When you post a code in the forums, it's pretty darn ugly to look at, it's a bunch of text with no syntax highlighting, very annoying to work with.
That is why, when you post a code on the forums, you would want to wrap your code with [lua] tags.
So if my code is:
[lua]print( "Hello world!" )[/lua]
I would put it in my post like this:
[|ua]print( "Hello world!" )[/|ua] (I used |ua instead of lua so it doesn't work in this particular example)
You should never, by any means, wrap your actual code that is on the server in brackets, or [lua] tags.
What you should do now, is remove all of your tags from the actual code, so it is identical to what you had in your original post, this means your code should look like this:
[lua]--[[---------------------------------------------------------------------------
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:
[url]https://github.com/FPtje/DarkRP/blob...jobrelated.lua[/url]
For examples and explanation please visit this wiki page:
[url]http://wiki.darkrp.com/index.php/DarkRP:CustomJobFields[/url]
Add your custom jobs under the following line:
---------------------------------------------------------------------------]]
TEAM_THIEF = DarkRP.createJob("Thief", {
color = Color(0, 0, 0, 255),
model = "models/player/phoenix.mdl",
description = [[You are a thief, rob people, lockpick their house and steal their plants and legal printers.]],
weapons = {"m9k_fists", "lockpick", "keypad_cracker"}, -- You may want to find a pickpocket swep and add it here.
command = "thief",
max = 4,
salary = 65,
admin = 0,
vote = false,
hasLicense = false,
category = "Citizens",
})
TEAM_HITMAN = DarkRP.createJob("Hitman", {
color = Color(0, 0, 0, 255),
model = "models/player/leet.mdl",
description = [[People hire you to take out other people.]],
weapons = {"m9k_fists", "m9k_m24"},
command = "hitman",
max = 1,
salary = 100,
admin = 0,
vote = false,
hasLicense = false,
category = "Citizens",
})
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 = {"m9k_fists", "lockpick", "m9k_tec9"},
command = "gangster",
max = 3,
salary = 60,
admin = 0,
vote = false,
hasLicense = false,
category = "Gangsters",
})
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 = {"m9k_fists", "lockpick", "unarrest_stick"},
command = "mobboss",
max = 1,
salary = 175,
admin = 0,
vote = false,
hasLicense = false,
category = "Gangsters",
})
TEAM_SS = DarkRP.createJob("Secret Service", {
color = Color(100, 20, 20, 255),
model = "models/player/combine_soldier_prisonguard.mdl",
description = [[You are responsible for protecting the mayor.
Take care of the old fellow, he is vulnerable to terrorists all the time! Before he enters a room, you need to make sure its secure.]],
weapons = {"m9k_fists", "m9k_deagle", "stunstick", "weaponchecker"},
command = "ss",
max = 2,
salary = 250,
admin = 0,
vote = true,
hasLicense = false,
ammo = {
["pistol"] = 60,
},
category = "Civil Protection",
})
TEAM_SWAT = DarkRP.createJob("Swat", {
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 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 = {"m9k_fists", "arrest_stick", "unarrest_stick", "m9k_m92beretta", "m9k_honeybadger", "stunstick", "door_ram", "weaponchecker"},
command = "Swat",
max = 4,
salary = 400,
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"
},
category = "Civil Protection",
})
TEAM_MAYOR = DarkRP.createJob("Mayor", {
color = Color(150, 20, 20, 255),
model = "models/player/breen.mdl",
description = [[You are the mayor of DarkRP.]],
weapons = {"m9k_fists", "unarrest_stick", "arrest_stick"},
command = "mayor",
max = 1,
salary = 150 ,
admin = 0,
vote = true,
hasLicense = false,
mayor = true,
category = "Civil Protection",
})
TEAM_MD = DarkRP.createJob("Mayors Daughter", {
color = Color(255,100,100,255),
model = "models/player/alyx.mdl",
description = [[You are the mayors daughter, walk around with your dad
just chill around. But be careful, you never know when somebody
is waiting to kidnap you!]],
weapons = {"weapon_fists"},
command = "mayorsdaughter",
max = 1,
salary = 80,
admin = 0,
vote = false,
hasLicense = false
})
TEAM_GUARD = DarkRP.createJob("Guard", {
color = Color(0,200,50,255),
model = "models/player/barney.mdl",
description = [[People will pay for protection, use your weapon or buy one from the local gundealer.]],
weapons = {"m9k_fists", "m9k_deagle"},
command = "guard",
max = 1,
salary = 85,
admin = 0,
vote = false,
hasLicense = true,
category = "Citizens",
})
TEAM_TERROR = DarkRP.createJob("Terrorist", {
color = Color(255, 140, 0, 255),
model = "models/player/guerilla.mdl",
description = [[You terrorise the civilians.]],
weapons = {"m9k_fists", "m9k_ak47", "m9k_suicide_bomb"},
command = "terrorist",
max = 3,
salary = 150,
admin = 0,
vote = true,
hasLicense = false,
category = "Citizens",
})
TEAM_TERRORL = DarkRP.createJob("Terrorist Leader", {
color = Color(255, 140, 0, 255),
model = "models/player/guerilla.mdl",
description = [[You are the Leader of the terrorist group.]],
weapons = {"weapon_fists", "m9k_ak47", "m9k_ied_detonator", "m9k_suicide_bomb", "m9k_proxy_mine", "m9k_rpg7"}
command = "terroristl",
max = 1,
salary = 150,
admin = 0,
vote = true,
hasLicense = false,
category = "Citizens",
})
TEAM_MTHIEF = DarkRP.createJob("Master Thief", {
color = Color(0, 0, 0, 255),
model = "models/player/phoenix.mdl",
description = [[You are a thief, rob people, lockpick their house and steal their plants and legal printers.]],
weapons = {"m9k_fists", "lockpick", "m9k_tec9", "keypad_cracker"}, -- You may wanna find a pickpocket swep and add it here.
command = "mthief",
max = 4,
salary = 110,
admin = 0,
vote = tr
I did what sean told me to do before i added the tags but the code still didn't work.
[editline]22nd May 2017[/editline]
It might be my disable defaults thats messing up here the code. (i didnt put the tags in)
[lua] --[[---------------------------------------------------------------------------
DarkRP disabled defaults
---------------------------------------------------------------------------
DarkRP comes with a bunch of default things:
- a load of modules
- default jobs
- shipments and guns
- entities (like the money printer)
and many more
If you want to disable or replace the default things, you should disable them here
Note: if you want to have e.g. edit the official medic job, you MUST disable the default one in this file!
You can copy the medic from DarkRP and paste it in darkrp_config/jobs.lua
---------------------------------------------------------------------------]]
--[[---------------------------------------------------------------------------
The list of modules that are disabled. Set to true to disable, false to enable.
Modules that are not in this list are enabled by default.
In some cases some external addons may overwrite one of the modules below and will expect them to be enabled to work.
In these few cases it will be pretty obvious when you expect something to happen and nothing does.
---------------------------------------------------------------------------]]
DarkRP.disabledDefaults["modules"] = {
["afk"] = true,
["chatsounds"] = false,
["events"] = false,
["fpp"] = false,
["f1menu"] = false,
["f4menu"] = false,
["hitmenu"] = false,
["hud"] = false,
["hungermod"] = true,
["playerscale"] = false,
["sleep"] = false,
["fadmin"] = false,
}
--[[---------------------------------------------------------------------------
The disabled default jobs. true to disable, false to enable.
NOTE: If you disable a job and remake it, expect things that rely on the job to stop working
e.g. you disable the gundealer and you make a new job as TEAM_GUN. If you want the shipments/door groups/etc. to
work for your custom job, remake them to include your job as well.
---------------------------------------------------------------------------]]
DarkRP.disabledDefaults["jobs"] = {
["chief"] = true,
["citizen"] = false,
["cook"] = false, --Hungermod only
["cp"] = false,
["gangster"] = true,
["gundealer"] = true,
["hobo"] = false,
["mayor"] = true,
["medic"] = false,
["mobboss"] = true,
}
--[[---------------------------------------------------------------------------
Shipments and pistols
---------------------------------------------------------------------------]]
DarkRP.disabledDefaults["shipments"] = {
["AK47"] = true,
["Desert eagle"] = true,
["Fiveseven"] = true,
["Glock"] = true,
["M4"] = true,
["Mac 10"] = true,
["MP5"] = true,
["P228"] = true,
["Pump shotgun"] = true,
["Sniper rifle"] = true,
}
--[[---------------------------------------------------------------------------
Entities
---------------------------------------------------------------------------]]
DarkRP.disabledDefaults["entities"] = {
["Drug lab"] = true,
["Gun lab"] = true,
["Money printer"] = false,
["Microwave"] = true, --Hungermod only
["Tip Jar"] = true,
}
--[[---------------------------------------------------------------------------
Vehicles
(at the moment there are no default vehicles)
You could use this to disable vehicles you added in the vehicles.lua located in the darkrp_customthings folder.
---------------------------------------------------------------------------]]
DarkRP.disabledDefaults["vehicles"] = {
}
--[[---------------------------------------------------------------------------
Food
Food is only enabled when hungermod is enabled (see disabled modules above).
---------------------------------------------------------------------------]]
DarkRP.disabledDefaults["food"] = {
["Banana"] = true,
["Bunch of bananas"] = true,
["Melon"] = true,
["Glass bottle"] = true,
["Pop can"] = true,
["Plastic bottle"] = true,
["Milk"] = true,
["Bottle 1"] = true,
["Bottle 2"] = true,
["Bottle 3"] = true,
["Orange"] = true,
}
--[[---------------------------------------------------------------------------
Door groups
---------------------------------------------------------------------------]]
DarkRP.disabledDefaults["doorgroups"] = {
["Cops and Mayor only"] = false,
["Gundealer only"] = false,
}
--[[---------------------------------------------------------------------------
Ammo packets
---------------------------------------------------------------------------]]
DarkRP.disabledDefaults["ammo"] = {
["Pistol ammo"] = true,
["Rifle ammo"] = true,
["Shotgun ammo"] = true,
}
--[[---------------------------------------------------------------------------
Agendas
---------------------------------------------------------------------------]]
DarkRP.disabledDefaults["agendas"] = {
["Gangster's agenda"] = false,
["Police agenda"] = false,
}
--[[---------------------------------------------------------------------------
Chat groups (chat with /g)
Chat groups do not have names, so their index is used instead.
---------------------------------------------------------------------------]]
DarkRP.disabledDefaults["groupchat"] = {
[1] = false, -- Police group chat (mayor, cp, chief and/or your custom CP teams)
[2] = false, -- Group chat between gangsters and the mobboss
[3] = false, -- Group chat between people of the same team
}
--[[---------------------------------------------------------------------------
Jobs that are hitmen
set to true to disable
---------------------------------------------------------------------------]]
DarkRP.disabledDefaults["hitmen"] = {
["mobboss"] = false,
}
--[[---------------------------------------------------------------------------
Demote groups
When anyone is demote from any job in this group, they will be temporarily banned
from every job in the group
---------------------------------------------------------------------------]]
DarkRP.disabledDefaults["demotegroups"] = {
["Cops"] = false,
["Gangsters"] = false,
}
[/lua]
[B]Did you even bother reading what I wrote[/B]
I literally gave you step by step instructions, complete with everything you need to do, in order to fix the code.
[QUOTE=SwagStag77;52261107]I did what sean told me to do before i added the tags but the code still didn't work.[/QUOTE]
Then do it again and post the error you're getting, don't just say "it didn't work"
[ERROR] addons/darkrpmodification-master/lua/darkrp_customthings/jobs.lua:203: '}' expected (to close '{' at line 198) near 'command'
1. unknown - addons/darkrpmodification-master/lua/darkrp_customthings/jobs.lua:0
Add a comma to the end of line 204
then there will be 2 is that correct
[lua] max = 1, [/lua]
thats line 204 right now, no edits.
you want is like this
[lua] max = 1,, [/lua]
[QUOTE=SwagStag77;52261165]then there will be 2 is that correct
[lua] max = 1, [/lua]
thats line 204 right now, no edits.
you want is like this
[lua] max = 1,, [/lua][/QUOTE]
Line 204 in your original post is:
[lua]weapons = {"weapon_fists", "m9k_ak47", "m9k_ied_detonator", "m9k_suicide_bomb", "m9k_proxy_mine", "m9k_rpg7"}[/lua]
What you pasted is line 206.
Either way, add a comma at the end of this line:
[lua]weapons = {"weapon_fists", "m9k_ak47", "m9k_ied_detonator", "m9k_suicide_bomb", "m9k_proxy_mine", "m9k_rpg7"}[/lua]
Here my code [lua] --[[---------------------------------------------------------------------------
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:
[url]https://github.com/FPtje/DarkRP/blob/master/gamemode/config/jobrelated.lua[/url]
For examples and explanation please visit this wiki page:
[url]http://wiki.darkrp.com/index.php/DarkRP:CustomJobFields[/url]
Add your custom jobs under the following line:
---------------------------------------------------------------------------]]
TEAM_THIEF = DarkRP.createJob("Thief", {
color = Color(0, 0, 0, 255),
model = "models/player/phoenix.mdl",
description = [[You are a thief, rob people, lockpick their house and steal their plants and legal printers.]],
weapons = {"m9k_fists", "lockpick", "keypad_cracker"}, -- You may want to find a pickpocket swep and add it here.
command = "thief",
max = 4,
salary = 65,
admin = 0,
vote = false,
hasLicense = false,
category = "Citizens",
})
TEAM_HITMAN = DarkRP.createJob("Hitman", {
color = Color(0, 0, 0, 255),
model = "models/player/leet.mdl",
description = [[People hire you to take out other people.]],
weapons = {"m9k_fists", "m9k_m24"},
command = "hitman",
max = 1,
salary = 100,
admin = 0,
vote = false,
hasLicense = false,
category = "Citizens",
})
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 = {"m9k_fists", "lockpick", "m9k_tec9"},
command = "gangster",
max = 3,
salary = 60,
admin = 0,
vote = false,
hasLicense = false,
category = "Gangsters",
})
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 = {"m9k_fists", "lockpick", "unarrest_stick"},
command = "mobboss",
max = 1,
salary = 175,
admin = 0,
vote = false,
hasLicense = false,
category = "Gangsters",
})
TEAM_SS = DarkRP.createJob("Secret Service", {
color = Color(100, 20, 20, 255),
model = "models/player/combine_soldier_prisonguard.mdl",
description = [[You are responsible for protecting the mayor.
Take care of the old fellow, he is vulnerable to terrorists all the time! Before he enters a room, you need to make sure its secure.]],
weapons = {"m9k_fists", "m9k_deagle", "stunstick", "weaponchecker"},
command = "ss",
max = 2,
salary = 250,
admin = 0,
vote = true,
hasLicense = false,
ammo = {
["pistol"] = 60,
},
category = "Civil Protection",
})
TEAM_SWAT = DarkRP.createJob("Swat", {
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 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 = {"m9k_fists", "arrest_stick", "unarrest_stick", "m9k_m92beretta", "m9k_honeybadger", "stunstick", "door_ram", "weaponchecker"},
command = "Swat",
max = 4,
salary = 400,
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"
},
category = "Civil Protection",
})
TEAM_MAYOR = DarkRP.createJob("Mayor", {
color = Color(150, 20, 20, 255),
model = "models/player/breen.mdl",
description = [[You are the mayor of DarkRP.]],
weapons = {"m9k_fists", "unarrest_stick", "arrest_stick"},
command = "mayor",
max = 1,
salary = 150 ,
admin = 0,
vote = true,
hasLicense = false,
mayor = true,
category = "Civil Protection",
})
TEAM_MD = DarkRP.createJob("Mayors Daughter", {
color = Color(255,100,100,255),
model = "models/player/alyx.mdl",
description = [[You are the mayors daughter, walk around with your dad
just chill around. But be careful, you never know when somebody
is waiting to kidnap you!]],
weapons = {"weapon_fists"},
command = "mayorsdaughter",
max = 1,
salary = 80,
admin = 0,
vote = false,
hasLicense = false
})
TEAM_GUARD = DarkRP.createJob("Guard", {
color = Color(0,200,50,255),
model = "models/player/barney.mdl",
description = [[People will pay for protection, use your weapon or buy one from the local gundealer.]],
weapons = {"m9k_fists", "m9k_deagle"},
command = "guard",
max = 1,
salary = 85,
admin = 0,
vote = false,
hasLicense = true,
category = "Citizens",
})
TEAM_TERROR = DarkRP.createJob("Terrorist", {
color = Color(255, 140, 0, 255),
model = "models/player/guerilla.mdl",
description = [[You terrorise the civilians.]],
weapons = {"m9k_fists", "m9k_ak47", "m9k_suicide_bomb"},
command = "terrorist",
max = 3,
salary = 150,
admin = 0,
vote = true,
hasLicense = false,
category = "Citizens",
})
TEAM_TERRORL = DarkRP.createJob("Terrorist Leader", {
color = Color(255, 140, 0, 255),
model = "models/player/guerilla.mdl",
description = [[You are the Leader of the terrorist group.]],
weapons = {"weapon_fists", "m9k_ak47", "m9k_ied_detonator", "m9k_suicide_bomb", "m9k_proxy_mine", "m9k_rpg7"},
command = "terroristl",
max = 1,
salary = 150,
admin = 0,
vote = true,
hasLicense = false,
category = "Citizens",
})
TEAM_MTHIEF = DarkRP.createJob("Master Thief", {
color = Color(0, 0, 0, 255),
model = "models/player/phoenix.mdl",
description = [[You are a thief, rob people, lockpick their house and steal their plants and legal printers.]],
weapons = {"m9k_fists", "lockpick", "m9k_tec9", "keypad_cracker"}, -- You may wanna find a pickpocket swep and add it here.
command = "m
These are all missing commas, extra commas, and duplicate words/symbols.
Can you look at line 243 and try to figure out why you're getting that error?
ur server will never get players especially since you can't even make jobs properly, just give up and stop wasting money and time.
[QUOTE=SwagStag77;52261181]
And here my error
[ERROR] addons/darkrpmodification-master/lua/darkrp_customthings/jobs.lua:243: '}' expected (to close '{' at line 241) near '='
1. unknown - addons/darkrpmodification-master/lua/darkrp_customthings/jobs.lua:0[/QUOTE]
You pretty much have to learn to read at this point : in "jobs.lua" a "}" is expected at line "243" near "=". I dont even know what the fuck is the line 243, you just need to read
Sorry, you need to Log In to post a reply to this thread.