Help with LUA script

I keep getting the error “}” is expected to close “{”. I backed up my files and moved over to a new host, and all I get is errors, it was working fine on my other server with no errors.

TEAM_SWAT = DarkRP.createJob(“SWAT”, {
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 optinal 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”},
command = “swat”,
max = 2,
salary = 200,
admin = 1,
vote = true,
hasLicense = true,
})

 TEAM_Banker = DarkRP.createJob("Banker", {
    color = Color(0, 179, 179, 255)
    model = "models/player/group01/Male_04.mdl",
    description = [[Your job is to keep they money safe of costomers that bank with you.]],
    weapons = {},
    command = "banker",
    max = 2,
    salary = 75,
    admin = 0,
    vote = false,
    hasLicense = false,
 })
 
 TEAM_Hitman = DarkRP.createJob("Hitman", {
    color = Color(212, 8, 0, 255)
    model = "models/player/group01/Male_03.mdl",
    description = [[You kill people for money]],
    weapons = {"unarrest_stick"},
    command = "hitman",
    max = 2,
    salary = 75,
    admin = 0,
    vote = true,
    hasLicense = false,
 })
 
TEAM_DRUGDEAL = DarkRP.createJob("Drug Dealer", {
    color = Color(255, 255, 255, 255)
    model = {"models/player/Group01/Male_08.mdl"},  
    description = [[Sell drugs. Don't get caught.]],
    weapons = {"weapon_fist", "weapon_gphone" },
    command = "drugdealer",
    max = 2,
    salary = 50,
    admin = 0,
    vote = false,
    hasLicense = false,
    
	})
	
TEAM_DRUGKING = DarkRP.createJob("Drug Kingpin", {
    color = Color(255, 255, 255, 255)
    model = {"models/player/leet.mdl"},  
    description = [[Sell drugs in large shipments. Sell to lower level drug dealers.]],
    weapons = {"weapon_fist", "weapon_gphone" },
    command = "drugking",
    max = 2,
    salary = 100,
    admin = 0,
    vote = false,
    hasLicense = false,
	
	})
	
TEAM_LIGHTGUN = DarkRp.createJob("Light Gun Dealer", {
	color = (255, 255, 255, 255)
	model = {"models/player/monk.mdl"},
	description = [[You sell light grade assualt weapons]]
    weapons = {"weapon_fist", "weapon_gphone" },
    command = "lightgun",
    max = 2,
    salary = 50,
    admin = 0,
    vote = false,
    hasLicense = false,
	
	})
	
TEAM_HEAVYGUN = DarkRp.createJob("Heavy Gun Dealer", {
	color = (255, 255, 255, 255)
	model = {"models/player/monk.mdl"},
	description = [[You sell Military grade assualt weapons]]
    weapons = {"weapon_fist", "weapon_gphone" },
    command = "heavygun",
    max = 2,
    salary = 75,
    admin = 0,
    vote = false,
    hasLicense = false,
	
	})
	
TEAM_BLACK = DarkRp.createJob("Black Market Dealer", {
	color = (255, 255, 255, 255)
	model = {"models/player/guerilla.mdl"},
	description = [[You sell to the citys underground. Don't get caught.]]
    weapons = {"weapon_fist", "weapon_gphone" },
    command = "blackmarket",
    max = 2,
    salary = 50,
    admin = 0,
    vote = false,
    hasLicense = false,
	
	})
	
TEAM_STORE = DarkRp.createJob("Store Clerk", {
	color = (255, 255, 255, 255)
	model = {"models/player/Group01/Male_07.mdl"},
	description = [[Beer and Cigs it's all you know.]]
    weapons = {"weapon_fist", "weapon_gphone" },
    command = "storeclerk",
    max = 2,
    salary = 50,
    admin = 0,
    vote = false,
    hasLicense = false,
	
	})

You’re missing a comma after all your colors. Same with a few descriptions. Wait, now that I look at all of it, your code is all over the place. Some of your colors aren’t Color(), and a lot of them are just white.

not tested but i fixed it up.



TEAM_SWAT = DarkRP.createJob("SWAT", {
   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 optinal 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"},
   command = "swat",
   max = 2,
   salary = 200,
   admin = 1,
   vote = true,
   hasLicense = true,
})

TEAM_Banker = DarkRP.createJob("Banker", {
   color = Color(0, 179, 179, 255),
   model = "models/player/group01/Male_04.mdl",
   description = [[Your job is to keep they money safe of costomers that bank with you.]],
   weapons = {},
   command = "banker",
   max = 2,
   salary = 75,
   admin = 0,
   vote = false,
   hasLicense = false,
})

TEAM_Hitman = DarkRP.createJob("Hitman", {
   color = Color(212, 8, 0, 255),
   model = "models/player/group01/Male_03.mdl",
   description = [[You kill people for money]],
   weapons = {"unarrest_stick"},
   command = "hitman",
   max = 2,
   salary = 75,
   admin = 0,
   vote = true,
   hasLicense = false,
})

TEAM_DRUGDEAL = DarkRP.createJob("Drug Dealer", {
   color = Color(255, 255, 255, 255),
   model = {"models/player/Group01/Male_08.mdl"}, 
   description = [[Sell drugs. Don't get caught.]],
   weapons = {"weapon_fist", "weapon_gphone" },
   command = "drugdealer",
   max = 2,
   salary = 50,
   admin = 0,
   vote = false,
   hasLicense = false,
})

TEAM_DRUGKING = DarkRP.createJob("Drug Kingpin", {
   color = Color(255, 255, 255, 255),
   model = {"models/player/leet.mdl"},
   description = [[Sell drugs in large shipments. Sell to lower level drug dealers.]],
   weapons = {"weapon_fist", "weapon_gphone" },
   command = "drugking",
   max = 2,
   salary = 100,
   admin = 0,
   vote = false,
   hasLicense = false,
})

TEAM_LIGHTGUN = DarkRp.createJob("Light Gun Dealer", {
   color = (255, 255, 255, 255),
   model = {"models/player/monk.mdl"},
   description = [[You sell light grade assualt weapons]],
   weapons = {"weapon_fist", "weapon_gphone" },
   command = "lightgun",
   max = 2,
   salary = 50,
   admin = 0,
   vote = false,
   hasLicense = false,
})

TEAM_HEAVYGUN = DarkRp.createJob("Heavy Gun Dealer", {
   color = (255, 255, 255, 255),
   model = {"models/player/monk.mdl"},
   description = [[You sell Military grade assualt weapons]],
   weapons = {"weapon_fist", "weapon_gphone" },
   command = "heavygun",
   max = 2,
   salary = 75,
   admin = 0,
   vote = false,
   hasLicense = false,
})

TEAM_BLACK = DarkRp.createJob("Black Market Dealer", {
   color = (255, 255, 255, 255),
   model = {"models/player/guerilla.mdl"},
   description = [[You sell to the citys underground. Don't get caught.]],
   weapons = {"weapon_fist", "weapon_gphone" },
   command = "blackmarket",
   max = 2,
   salary = 50,
   admin = 0,
   vote = false,
   hasLicense = false,
})

TEAM_STORE = DarkRp.createJob("Store Clerk", {
   color = (255, 255, 255, 255),
   model = {"models/player/Group01/Male_07.mdl"},
   description = [[Beer and Cigs it's all you know.]],
   weapons = {"weapon_fist", "weapon_gphone" },
   command = "storeclerk",
   max = 2,
   salary = 50,
   admin = 0,
   vote = false,
   hasLicense = false,
})


Still a few problems, It should be perfect now



TEAM_SWAT = DarkRP.createJob("SWAT", {
   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 optinal 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"},
   command = "swat",
   max = 2,
   salary = 200,
   admin = 1,
   vote = true,
   hasLicense = true
})

TEAM_Banker = DarkRP.createJob("Banker", {
   color = Color(0, 179, 179, 255),
   model = "models/player/group01/Male_04.mdl",
   description = [[Your job is to keep they money safe of costomers that bank with you.]],
   weapons = {},
   command = "banker",
   max = 2,
   salary = 75,
   admin = 0,
   vote = false,
   hasLicense = false
})

TEAM_Hitman = DarkRP.createJob("Hitman", {
   color = Color(212, 8, 0, 255),
   model = "models/player/group01/Male_03.mdl",
   description = [[You kill people for money]],
   weapons = {"unarrest_stick"},
   command = "hitman",
   max = 2,
   salary = 75,
   admin = 0,
   vote = true,
   hasLicense = false
})

TEAM_DRUGDEAL = DarkRP.createJob("Drug Dealer", {
   color = Color(255, 255, 255, 255),
   model = "models/player/Group01/Male_08.mdl", 
   description = [[Sell drugs. Don't get caught.]],
   weapons = {"weapon_fist", "weapon_gphone" },
   command = "drugdealer",
   max = 2,
   salary = 50,
   admin = 0,
   vote = false,
   hasLicense = false
})

TEAM_DRUGKING = DarkRP.createJob("Drug Kingpin", {
   color = Color(255, 255, 255, 255),
   model = "models/player/leet.mdl",
   description = [[Sell drugs in large shipments. Sell to lower level drug dealers.]],
   weapons = {"weapon_fist", "weapon_gphone" },
   command = "drugking",
   max = 2,
   salary = 100,
   admin = 0,
   vote = false,
   hasLicense = false
})

TEAM_LIGHTGUN = DarkRp.createJob("Light Gun Dealer", {
   color = Color(255, 255, 255, 255),
   model = "models/player/monk.mdl",
   description = [[You sell light grade assualt weapons]],
   weapons = {"weapon_fist", "weapon_gphone" },
   command = "lightgun",
   max = 2,
   salary = 50,
   admin = 0,
   vote = false,
   hasLicense = false
})

TEAM_HEAVYGUN = DarkRp.createJob("Heavy Gun Dealer", {
   color = Color(255, 255, 255, 255),
   model = "models/player/monk.mdl",
   description = [[You sell Military grade assualt weapons]],
   weapons = {"weapon_fist", "weapon_gphone" },
   command = "heavygun",
   max = 2,
   salary = 75,
   admin = 0,
   vote = false,
   hasLicense = false
})

TEAM_BLACK = DarkRp.createJob("Black Market Dealer", {
   color = Color(255, 255, 255, 255),
   model = "models/player/guerilla.mdl",
   description = [[You sell to the citys underground. Don't get caught.]],
   weapons = {"weapon_fist", "weapon_gphone" },
   command = "blackmarket",
   max = 2,
   salary = 50,
   admin = 0,
   vote = false,
   hasLicense = false
})

TEAM_STORE = DarkRp.createJob("Store Clerk", {
   color = Color(255, 255, 255, 255),
   model = "models/player/Group01/Male_07.mdl",
   description = [[Beer and Cigs it's all you know.]],
   weapons = {"weapon_fist", "weapon_gphone" },
   command = "storeclerk",
   max = 2,
   salary = 50,
   admin = 0,
   vote = false,
   hasLicense = false
})


i hope you are kidding… ignoring the incredible amount of problems you added, did you really just remove the commas from the last array entries and say its fixed? you do realise that that isnt a problem right?

He also corrected the colors to color(255,255,255) rather than just (255,255,255)

ah didnt see that

It was for me last time I did something like that, otherwise you get something like {thing1=“one”,thing2=“two”,thing3=“three”,} Which, in my experience, doesn’t work.

[editline]1st July 2014[/editline]

Also, “model” does actually take in strings as well as tables.

ye sorry i havent touched darkrp for years, i just fixed up the syntax as best i could and completely skipped the colors haha