I wrote all these jobs from scratch. It my first time. They seem not to be working. I don't know if anyone would like to take there time and look for any errors and re write it. I looked over a few times and did not notice anything.
TEAM_THIEF = DarkRP.createJob("Thief", {
color = Color(0, 0, 0, 255),
model = "models/player/lulsec.mdl",
description = [[You are a thief, rob people, lockpick their house and steal their plants and legal printers.]],
weapons = {"weapon_physcannon", "lockpick", "m9k_sig_p229r"}, -- You may wanna find a pickpocket swep and add it here.
command = "thief",
max = 6,
salary = 150,
admin = 0,
vote = false,
hasLicense = false,
category = "Citizens",
})
TEAM_HITMAN = DarkRP.createJob("Hitman", {
color = Color(0, 0, 0, 255),
model = "models/player/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 = {"weapon_physcannon", "[CW 2.0] Sako TRG-42"},
command = "hitman",
max = 2,
salary = 75,
admin = 0,
vote = false,
hasLicense = false,
category = "Citizens",
})
TEAM_SS = DarkRP.createJob("Secret Service", {
color = Color(100, 20, 20, 255),
model = "models/player/smith.mdl",
description = [[You are responsible for protecting the mayor.
Take care of the old fellow, he is vanuarable to terrorists all the time! Before he enters a room, you need to make sure its secure.]],
weapons = {"weapon_physcannon", "weapon_deagle2", "stunstick", "weaponchecker"},
command = "ss",
max = 4,
salary = 300,
admin = 0,
vote = true,
hasLicense = false,
ammo = {
["pistol"] = 60,
},
category = "Civil Protection",
PlayerSpawn = function(ply) ply:SetArmor(100) end,
customCheck = function(ply)return ply:GetUserGroup() == "police"or ply:IsSuperAdmin() end,
CustomCheckFailMsg = "This job is for police only!"
})
TEAM_SWAT = DarkRP.createJob("Swat", {
color = Color(25, 25, 170, 255),
model = {"Piket_Playermodel/face/head_diff_000_a_whi_2"},
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 = {"weapon_physcannon", "arrest_stick", "unarrest_stick", "m9k_m92beretta", "stunstick", "door_ram", "weaponchecker", "handcuffs"},
command = "Swat",
max = 8,
salary = 200,
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",
PlayerSpawn = function(ply) ply:SetArmor(100) end,
customCheck = function(ply)return ply:GetUserGroup() == "police"or ply:IsSuperAdmin() end,
CustomCheckFailMsg = "This job is for police only!",
})
TEAM_ADMIN = DarkRP.createJob("Admin On Duty", {
color = Color(170, 0, 0, 255),
model = "models/player/zeus_combine_v2/zeus_combine_v2.mdl",
description = [[Admin on duty is when you as an admin, is ready to make sure the server stays at its best.
It's up to you to patrol and respond to admin calls.]],
weapons = {"weapon_physcannon"},
command = "aod",
max = 0,
salary = 400,
admin = 0,
vote = false,
hasLicense = false,
category = "Admins",
customCheck = function(ply) return ply:IsAdmin() end,
})
TEAM_JUH = DarkRP.createJob("Juggernaut", {
color = Color(20, 20, 255, 255),
model = "models/juggernaut_player.mdl",
description = [[]],
weapons = {"weapon_physcannon", "m9k_minigun"}, -- You may wanna find a pickpocket swep and add it here.
command = "jug",
max = 1,
salary = 150,
admin = 0,
vote = true,
hasLicense = false,
category = "Civil Protection",
PlayerSpawn = function(ply) ply:SetHealth(500) end,
customCheck = function(ply)return ply:GetUserGroup() == "police"or ply:IsSuperAdmin() end,
CustomCheckFailMsg = "This job is for police only!",
})
TEAM_SWATL = DarkRP.createJob("Swat Leader", {
color = Color(20, 20, 255, 255),
model = {"models/codmw2/codmw2hexe.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 = {"weapon_physcannon", "arrest_stick", "unarrest_stick", "m9k_m92beretta", "stunstick", "door_ram", "weaponchecker", "handcuffs"},
command = "Swatl",
max = 1,
salary = 200,
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",
PlayerSpawn = function(ply) ply:SetArmor(100) end,
customCheck = function(ply)return ply:GetUserGroup() == "police"or ply:IsSuperAdmin() end,
CustomCheckFailMsg = "This job is for police only!",
})
TEAM_MTHIEF = DarkRP.createJob("Master 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 = {"weapon_physcannon", "lockpick", "m9k_tec9", "pickpocket "}, -- You may wanna find a pickpocket swep and add it here.
command = "mthief",
max = 2,
salary = 110,
admin = 0,
vote = false,
hasLicense = false,
category = "Criminals",
})
TEAM_SADMIN = DarkRP.createJob("Superadmin on duty", {
color = Color(150, 20, 20, 255),
model = "models/player/anon/anon.mdl",
description = [[]],
weapons = {},
command = "saod",
max = 0,
salary = 100,
admin = 0,
vote = false,
hasLicense = false,
category = "Admins",
customCheck = function(ply) return ply:GetUserGroup() == "superadmin" end,
})
TEAM_FLASH = DarkRP.createJob("Flash", {
color = Color(255, 0, 255, 0),
model = "models/player/superheroes/flash.mdl",
description = [[works with the police and the fastest man alive.]],
weapons = {"weapon_physcannon", "realrbn_tazer_mr", "weapon_r_handcuffs", "door_ram", "keys", "tfsr_speedster", "swep_radiodevice"},
command = "flash",
max = 1,
salary = 246,
admin = 0,
vote = false,
hasLicense = true,
category = "Civil Protection",
PlayerSpawn = function(ply) ply:SetArmor(100) end,
customCheck = function(ply)return ply:GetUserGroup() == "donator"or ply:IsSuperAdmin() end,
CustomCheckFailMsg = "This job is Donator only!"
})
TEAM_MANAGER = DarkRP.createJob("Bank Manager", {
color = Color(0, 67, 255, 225),
model = "models/player/dank.mdl",
description = [[Looks after the bank calls the police if its being robbed]],
weapons = {"pocket", "keys"},
command = "manager",
max = 2,
salary = 151,
admin = 0,
vote = false,
hasLicense = false,
category = "Citizens",
})
TEAM_BOUNTY = DarkRP.createJob("Bounty Hunter", {
color = Color(127, 0, 255, 95),
model = "models/player/leet.mdl",
description = [[ You go arrest people who are wanted by the police and turn them in, and go kill people who have been bad and get rewarded, just don’t get caught by the police killing people within the law.
]],
weapons = {"weapon_physcannon", "cw_silverballer", "cw_trg42", "lockpick", "keys", "keypad_cracker", "m9k_knife", "weapon_r_handcuffs"
},
command = "bounty",
max = 2,
salary = 151,
admin = 0,
vote = false,
hasLicense = false,
category = "Citizens",
PlayerSpawn = function(ply) ply:SetArmor(25) end,
})
TEAM_FIRET = DarkRP.createJob("Firefighter", {
color = Color(255, 0, 255, 85),
model = "models/player/portal/Male_07_fireman.mdl", "models/player/portal/Male_04_fireman.mdl", "models/player/portal/Male_08_fireman.mdl", "models/player/portal/Male_05_fireman.mdl", "models/player/portal/Male_09_fireman.mdl", "models/player/portal/Male_06_fireman.mdl",
description = [[ You stop big outbreaks of wildfires throughout the city
]],
weapons = {"weapon_physcannon", "door_ram", "swep_radiodevice", "med_kit", "keys"
},
command = "firet",
max = 8,
salary = 151,
admin = 0,
vote = false,
hasLicense = false,
category = "Citizens",
customCheck = function(ply)return ply:GetUserGroup() == "police"or ply:IsSuperAdmin() end,
CustomCheckFailMsg = "This job is for police only!",
})
TEAM_FIRE = DarkRP.createJob("Firefighter Chief", {
color = Color(255, 0, 255, 93),
model = "models/player/portal/Male_07_fireman.mdl",
description = [[You are the chief of the fire department, he drives the truck and orders what the firefighter do]],
weapons = {"weapon_physcannon", "door_ram", "swep_radiodevice", "med_kit", "keys"
},
command = "fire",
max = 8,
salary = 151,
admin = 0,
vote = false,
hasLicense = false,
category = "Firefighter",
customCheck = function(ply)return ply:GetUserGroup() == "police"or ply:IsSuperAdmin() end,
CustomCheckFailMsg = "This job is for police only!",
})
TEAM_DEA = DarkRP.createJob("DEA", {
color = Color(127, 0, 255, 255),
model = "models/fbi_pack/fbi_09.mdl", "models/fbi_pack/fbi_05.mdl", "models/fbi_pack/fbi_08.mdl", "models/fbi_pack/fbi_03.mdl", "models/fbi_pack/fbi_01.mdl", "models/fbi_pack/fbi_04.mdl",
description = [[You get warrents and raid people houses with the swat team to catch them with a drug lab, then you send them to jail and stop them before they sell it.]],
weapons = {"weapon_physcannon", "door_ram", "swep_radiodevice", "med_kit", "keys", "realrbn_tazer_mr", "weapon_r_handcuffs" , “m9k_usp”, “m9k_m416”
},
command = "dea",
max = 3,
salary = 151,
admin = 0,
vote = false,
hasLicense = false,
category = "Civil Protection",
customCheck = function(ply)return ply:GetUserGroup() == "police"or ply:IsSuperAdmin() end,
CustomCheckFailMsg = "This job is for police only!",
})
TEAM_ROBL = DarkRP.createJob("Robber Leader", {
color = Color(127, 0, 255, 255),
model = "models/player/bloodz/Bloodz2.mdl", "models/player/bloodz/Bloodz1.mdl" ,
description = [[you lead robberies and set up groups to rob the bank. Use !party to set a party up]],
weapons = {"weapon_physcannon", "cw_silverballer", "weapon_vape_medicinal", "tfsr_tranquilizer", "m9k_hk45", "weapon_cable_tied", "swep_radiodevice", "keys", "lockpick"
},
command = "robl",
max = 1,
salary = 75,
admin = 0,
vote = false,
hasLicense = false,
category = "Criminals",
})
TEAM_ROB = DarkRP.createJob("Robbers", {
color = Color(0, 0, 255, 0),
model = "models/pechenko_121/Deadpool/chr_deadpooldpooly.mdl", "models/narry/shrek_playermodel_v1.mdl", "models/sinful/mariob_hatless.mdl", "models/player/kermit.mdl", "Models/player/Mermaidman/Mermaidman.mdl", "models/sbplayer/sb.mdl", "models/player/superheroes/batman.mdl", "models/player/woody.mdl",
description = [[You rob the bank with the robbery leader. Make sure you join the party]],
weapons = {"weapon_physcannon", "weapon_vape_medicinal", "m9k_hk45", "weapon_cable_tied", "swep_radiodevice", "lockpick"
},
command = "rob",
max = 5,
salary = 75,
admin = 0,
vote = false,
hasLicense = false,
category = "Criminals",
})
TEAM_DRUG = DarkRP.createJob("Meth Cooker", {
color = Color(0, 0, 0, 255),
model = "models/player/soldier_stripped.mdl", "models/player/charple.mdl",
description = [[You are a meth cooker, you cook meth and sell it to people or the drug dealer to make money. Don't get caught by the cops!]],
weapons = {"weapon_physcannon", "keys"}, -- You may wanna find a pickpocket swep and add it here.
command = "drug",
max = 5,
salary = 100,
admin = 0,
vote = false,
hasLicense = false,
category = "Criminals",
})
Thank you for trying!
First off, use the code braces, so it can be read. Instead of just saying 'it doesn't seem to be working' post the error(s) they're putting out in your server console.
Did you restart the server?
errors?
I used https://fptje.github.io/glualint-web/ to detect the error and it seemed like you had used some weird quotation marks on line 507.
I replaced the quotation marks with normal ones and cleaned up the code for you using Fptje's tool.
Here is a Pastebin to the possibly fixed code: https://pastebin.com/fYvKLpDK
thank you everyone for helping me. we fixed it! lol, thanks thou
Sorry, you need to Log In to post a reply to this thread.