[ERROR] addons/darkrpmodification/lua/darkrp_customthings/jobs.lua:141: ')' expected near 'Leader”'
1. unknown - addons/darkrpmodification/lua/darkrp_customthings/jobs.lua:0
Looked on line 141 everything looked the same as my other jobs.
[CODE] TEAM_SWATC = DarkRP.createJob("S.W.A.T Cheif", {
color = Color(80, 45, 0, 255),
model = "models/player/swat.mdl",
description = [[This is a donator special job,
your duty is to heal on of your
wounded operatives. You should stay in the PD
until backup is needed.
Do everything you can to keep the city safe.
You can heal your team, but it's not optional unless theres
no medics alive. If theres no mayor, you're in charge.]],
weapons = {"arrest_stick", "unarrest_stick", "weapon_glock2", "weapon_ak472", "ls_sniper", "weapon_m42", "weapon_mp52", "stunstick", "door_ram", "weaponchecker", "med_kit"},
command = "swat",
max = 1,
salary = 200,
admin = 0,
vote = true,
hasLicense = true,
})
TEAM_SWATM = DarkRP.createJob("S.W.A.T Medic", {
color = Color(80, 45, 0, 255),
model = "models/player/swat.mdl",
description = [[
Your duty is to heal on of your
wounded operatives. You should stay in the PD
until backup is needed.
Do everything you can to keep the city safe.
You also keep your team healed.]],
weapons = {"arrest_stick", "unarrest_stick", "weapon_glock2", "weapon_ak472", "ls_sniper", "weapon_m42", "weapon_mp52", "stunstick", "door_ram", "weaponchecker", "med_kit"},
command = "swatm",
max = 3,
salary = 100,
admin = 0,
vote = true,
hasLicense = true,
})
TEAM_SWAT = DarkRP.createJob("S.W.A.T", {
color = Color(80, 45, 0, 255),
model = "models/player/swat.mdl",
description = [[You Help out the police force in difficult times, stop terrorist from starting raids on the city.]],
weapons = {"arrest_stick", "unarrest_stick", "weapon_glock2", "weapon_ak472", "ls_sniper", "weapon_m42", "weapon_mp52", "stunstick", "door_ram", "weaponchecker"},
command = "swat",
max = 3,
salary = 100,
admin = 0,
vote = true,
hasLicense = true,
})
TEAM_DRUG = DarkRP.createJob("Drug Dealer", {
color = Color(80, 45, 0, 255),
model = "models/Eli.mdl",
description = [[You're a drug dealer. You sell anonymous drugs. doing /advert
will be instant demotion]],
weapons = {},
command = "drug",
max = 3,
salary = 15,
admin = 0,
vote = false,
hasLicense = false
})
TEAM_THIEF = AddExtraTeam("Thief", {
color = Color(0, 153, 204),
model = "models/kane_robber_masked.mdl",
description = [[Raid People for money, hold them up, steal printers, Raid The CPS!]],
weapons = {"weapon_deagle2","lockpick", "keypad_cracker", "weapon_fists"},
command = "Thief",
max = 5,
salary = 50,
admin = 0,
vote = false,
hasLicense = false,
candemote = true,
mayorCanSetSalary = false
})
TEAM_PROTHIEF = AddExtraTeam("Pro Thief", {
color = Color(0, 153, 204),
VIPOnly = true,
model = "models/npc_pd2_dallas",
description = [[Raid People for money, hold them up, steal printers, Raid The CPS!]],
weapons = {"weapon_deagle2","ninjalockpick", "keypad_cracker", "climb_swep2", "weapon_fists"},
command = "ProThief",
max = 4,
salary = 65,
admin = 0,
vote = false,
hasLicense = false,
candemote = true,
mayorCanSetSalary = false,
customCheck = function(ply) return table.HasValue({"superadmin", "admin", "headadmin", "vip", "vip+", "vip++", "donator", "donator+", "donator++", "trialadmin"}, ply:GetNWString("usergroup")) end,
CustomCheckFailMsg = "You need to be a VIP donor to be this job!."
})
TEAM_MAFIAL = AddExtraTeam("Mafia Leader", {
color = Color(255,165,44),
model = {"models/fearless/don1.mdl"},
description = [[you are the leader
of the Mafia, your rivalries are
the Gangsters and Mob Boss!
Fight For Glory!]],
weapons = {"med_kit", "bb_deagle_alt", "unarrest_stick", "lockpick", "weapon_fists"},
command = "mafialeader",
max = 1,
salary = 80,
admin = 0,
vote = false,
hasLicense = false,
candemote = true,
mayorCanSetSalary = false
})
TEAM_MAFIA = AddExtraTeam("Mafia", {
color = Color(255,165,44),
model = {
"models/fearless/mafia02.mdl",
"models/fearless/mafia04.mdl",
"models/fearless/mafia07.mdl",
"models/fearless/mafia09.mdl"
},
description = [[you are a member
of the Mafia, your rivalries are
the Gangsters and Mob Boss!
Fight For Glory!]],
weapons = {"weapon_fists"},
command = "mafia",
max = 8,
salary = 65,
admin = 0,
vote = false,
hasLicense = false,
candemote = true,
mayorCanSetSalary = false
})
TEAM_CULTL = AddExtraTeam(“Cultist Leader”, {
color = Color(0, 153, 204),
VIPOnly = true,
model = “”,
description = [[You are a cultist leader. Lead your cultists, make the streets become everyones fear. You sacrifice people.]],
weapons = {"weapon_deagle2","ninjalockpick", "keypad_cracker", "climb_swep2", "weapon_fists"},
command = "ProThief",
max = 4,
salary = 65,
admin = 0,
vote = false,
hasLicense = false,
candemote = true,
mayorCanSetSalary = false,
customCheck = function(ply) return table.HasValue({"superadmin", "admin", "headadmin", "vip+", "vip++", "donator+", "donator++", "trialadmin"}, ply:GetNWString("usergroup")) end,
CustomCheckFailMsg = "You need to be a VIP donor to be this job!. mayorCanSetSalary = false
})
[/CODE]
What happened to mayorCanSetSalary = false at the very bottom of the code for Cultist Leader? It says orCanSetSalary = false
AddExtraTeam(“Cultist Leader”
See the quotes? They're different. Replace the quotes so it looks like this:
AddExtraTeam("Cultist Leader"
Same for
model = “”
Sorry, you need to Log In to post a reply to this thread.