A few errors on DarkRP

I have quite a few errors on my DarkRP server but can’t seem to find out why?

The first one:

Server Console Msg: [ERROR] addons/darkrpmodification/lua/darkrp_customthings/shipments.lua:251: unexpected symbol near ‘<eof>’.

That file:

[lua]
/*---------------------------------------------------------------------------
DarkRP custom shipments and guns

This file contains your custom shipments and guns.
This file should also contain shipments and guns from DarkRP that you edited.

Note: If you want to edit a default DarkRP shipment, first disable it in darkrp_config/disabled_defaults.lua
Once you’ve done that, copy and paste the shipment to this file and edit it.

The default shipments and guns can be found here:

For examples and explanation please visit this wiki page:
http://wiki.darkrp.com/index.php/DarkRP:CustomShipmentFields

Add shipments and guns under the following line:
---------------------------------------------------------------------------*/
DarkRP.createShipment(“Deagle”, {
model = “models/weapons/w_tcom_deagle.mdl”, – The model of the item that hovers above the shipment
entity = “m9k_deagle”, – the entity that comes out of the shipment
price = 1000, – the price of one shipment
amount = 10, – how many of the item go in one purchased shipment
separate = true, – whether the item is sold separately (usually used for guns)
pricesep = 150, – the price of a separately sold item
noship = false, – whether this item has a shipment
allowed = {TEAM_HGUN}, – OPTIONAL, which teams are allowed to buy this shipment/separate gun
shipmodel = “models/items/item_item_crate.mdl”, – OPTIONAL, the model of the shipment (this crate is the default)
//customCheck = function(ply) return ply:Frags() < 10 end, – OPTIONAL, extra conditions before people can purchase the shipment or separate item
//weight = 15, – OPTIONAL, the weight of the shipment. The default is the weight of the shipment
//spareammo = 10, – OPTIONAL, Add ammo to the default amount of ammo for every weapon
//clip1 = 10, – OPTIONAL, The amount of bullets in the primary clip by default
//clip2 = 10, – OPTIONAL, The amount of bullets in the secondary clip by default
//buttonColor = Color(255, 255, 255, 255), – Optional: The color of the button in the F4 menu,
//label = “Deagle”, – Optional: the text on the button in the F4 menu

DarkRP.createShipment(“M4A1”, {
model = “models/weapons/w_m4a1_iron.mdl”, – The model of the item that hovers above the shipment
entity = “m9k_m4a1”, – the entity that comes out of the shipment
price = 5000, – the price of one shipment
amount = 10, – how many of the item go in one purchased shipment
separate = true, – whether the item is sold separately (usually used for guns)
pricesep = 500, – the price of a separately sold item
noship = false, – whether this item has a shipment
allowed = {TEAM_HGUN}, – OPTIONAL, which teams are allowed to buy this shipment/separate gun
shipmodel = “models/items/item_item_crate.mdl”, – OPTIONAL, the model of the shipment (this crate is the default)
//customCheck = function(ply) return ply:Frags() < 10 end, – OPTIONAL, extra conditions before people can purchase the shipment or separate item
//weight = 15, – OPTIONAL, the weight of the shipment. The default is the weight of the shipment
//spareammo = 10, – OPTIONAL, Add ammo to the default amount of ammo for every weapon
//clip1 = 10, – OPTIONAL, The amount of bullets in the primary clip by default
//clip2 = 10, – OPTIONAL, The amount of bullets in the secondary clip by default
//buttonColor = Color(255, 255, 255, 255), – Optional: The color of the button in the F4 menu,
//label = “Deagle”, – Optional: the text on the button in the F4 menu

DarkRP.createShipment(“AK47”, {
model = “models/weapons/w_ak47_m9k.mdl”, – The model of the item that hovers above the shipment
entity = “m9k_m4a1”, – the entity that comes out of the shipment
price = 5000, – the price of one shipment
amount = 10, – how many of the item go in one purchased shipment
separate = true, – whether the item is sold separately (usually used for guns)
pricesep = 500, – the price of a separately sold item
noship = false, – whether this item has a shipment
allowed = {TEAM_HGUN}, – OPTIONAL, which teams are allowed to buy this shipment/separate gun
shipmodel = “models/items/item_item_crate.mdl”, – OPTIONAL, the model of the shipment (this crate is the default)
//customCheck = function(ply) return ply:Frags() < 10 end, – OPTIONAL, extra conditions before people can purchase the shipment or separate item
//weight = 15, – OPTIONAL, the weight of the shipment. The default is the weight of the shipment
//spareammo = 10, – OPTIONAL, Add ammo to the default amount of ammo for every weapon
//clip1 = 10, – OPTIONAL, The amount of bullets in the primary clip by default
//clip2 = 10, – OPTIONAL, The amount of bullets in the secondary clip by default
//buttonColor = Color(255, 255, 255, 255), – Optional: The color of the button in the F4 menu,
//label = “Deagle”, – Optional: the text on the button in the F4 menu

DarkRP.createShipment(“ACR”, {
model = “models/weapons/w_masada_acr.mdl”, – The model of the item that hovers above the shipment
entity = “m9k_acr”, – the entity that comes out of the shipment
price = 5500, – the price of one shipment
amount = 10, – how many of the item go in one purchased shipment
separate = true, – whether the item is sold separately (usually used for guns)
pricesep = 600, – the price of a separately sold item
noship = false, – whether this item has a shipment
allowed = {TEAM_HGUN}, – OPTIONAL, which teams are allowed to buy this shipment/separate gun
shipmodel = “models/items/item_item_crate.mdl”, – OPTIONAL, the model of the shipment (this crate is the default)
//customCheck = function(ply) return ply:Frags() < 10 end, – OPTIONAL, extra conditions before people can purchase the shipment or separate item
//weight = 15, – OPTIONAL, the weight of the shipment. The default is the weight of the shipment
//spareammo = 10, – OPTIONAL, Add ammo to the default amount of ammo for every weapon
//clip1 = 10, – OPTIONAL, The amount of bullets in the primary clip by default
//clip2 = 10, – OPTIONAL, The amount of bullets in the secondary clip by default
//buttonColor = Color(255, 255, 255, 255), – Optional: The color of the button in the F4 menu,
//label = “Deagle”, – Optional: the text on the button in the F4 menu

DarkRP.createShipment(“Thompson Contender”, {
model = “models/weapons/w_g2_contender.mdl”, – The model of the item that hovers above the shipment
entity = “m9k_contender”, – the entity that comes out of the shipment
price = 7000, – the price of one shipment
amount = 10, – how many of the item go in one purchased shipment
separate = true, – whether the item is sold separately (usually used for guns)
pricesep = 800, – the price of a separately sold item
noship = false, – whether this item has a shipment
allowed = {TEAM_HGUN}, – OPTIONAL, which teams are allowed to buy this shipment/separate gun
shipmodel = “models/items/item_item_crate.mdl”, – OPTIONAL, the model of the shipment (this crate is the default)
//customCheck = function(ply) return ply:Frags() < 10 end, – OPTIONAL, extra conditions before people can purchase the shipment or separate item
//weight = 15, – OPTIONAL, the weight of the shipment. The default is the weight of the shipment
//spareammo = 10, – OPTIONAL, Add ammo to the default amount of ammo for every weapon
//clip1 = 10, – OPTIONAL, The amount of bullets in the primary clip by default
//clip2 = 10, – OPTIONAL, The amount of bullets in the secondary clip by default
//buttonColor = Color(255, 255, 255, 255), – Optional: The color of the button in the F4 menu,
//label = “Deagle”, – Optional: the text on the button in the F4 menu

DarkRP.createShipment(“SCAR”, {
model = “models/weapons/w_fn_scar_h.mdl”, – The model of the item that hovers above the shipment
entity = “m9k_scar”, – the entity that comes out of the shipment
price = 5000, – the price of one shipment
amount = 10, – how many of the item go in one purchased shipment
separate = true, – whether the item is sold separately (usually used for guns)
pricesep = 600, – the price of a separately sold item
noship = false, – whether this item has a shipment
allowed = {TEAM_HGUN}, – OPTIONAL, which teams are allowed to buy this shipment/separate gun
shipmodel = “models/items/item_item_crate.mdl”, – OPTIONAL, the model of the shipment (this crate is the default)
//customCheck = function(ply) return ply:Frags() < 10 end, – OPTIONAL, extra conditions before people can purchase the shipment or separate item
//weight = 15, – OPTIONAL, the weight of the shipment. The default is the weight of the shipment
//spareammo = 10, – OPTIONAL, Add ammo to the default amount of ammo for every weapon
//clip1 = 10, – OPTIONAL, The amount of bullets in the primary clip by default
//clip2 = 10, – OPTIONAL, The amount of bullets in the secondary clip by default
//buttonColor = Color(255, 255, 255, 255), – Optional: The color of the button in the F4 menu,
//label = “Deagle”, – Optional: the text on the button in the F4 menu

DarkRP.createShipment(“AK74”, {
model = “models/weapons/w_tct_ak47.mdl”, – The model of the item that hovers above the shipment
entity = “m9k_ak74”, – the entity that comes out of the shipment
price = 4500, – the price of one shipment
amount = 10, – how many of the item go in one purchased shipment
separate = true, – whether the item is sold separately (usually used for guns)
pricesep = 500, – the price of a separately sold item
noship = false, – whether this item has a shipment
allowed = {TEAM_HGUN}, – OPTIONAL, which teams are allowed to buy this shipment/separate gun
shipmodel = “models/items/item_item_crate.mdl”, – OPTIONAL, the model of the shipment (this crate is the default)
//customCheck = function(ply) return ply:Frags() < 10 end, – OPTIONAL, extra conditions before people can purchase the shipment or separate item
//weight = 15, – OPTIONAL, the weight of the shipment. The default is the weight of the shipment
//spareammo = 10, – OPTIONAL, Add ammo to the default amount of ammo for every weapon
//clip1 = 10, – OPTIONAL, The amount of bullets in the primary clip by default
//clip2 = 10, – OPTIONAL, The amount of bullets in the secondary clip by default
//buttonColor = Color(255, 255, 255, 255), – Optional: The color of the button in the F4 menu,
//label = “Deagle”, – Optional: the text on the button in the F4 menu

DarkRP.createShipment(“M60 Machine Gun”, {
model = “models/weapons/w_m60_machine_gun.mdl”, – The model of the item that hovers above the shipment
entity = “m9k_m60”, – the entity that comes out of the shipment
price = 6000, – the price of one shipment
amount = 10, – how many of the item go in one purchased shipment
separate = true, – whether the item is sold separately (usually used for guns)
pricesep = 700, – the price of a separately sold item
noship = false, – whether this item has a shipment
allowed = {TEAM_HGUN}, – OPTIONAL, which teams are allowed to buy this shipment/separate gun
shipmodel = “models/items/item_item_crate.mdl”, – OPTIONAL, the model of the shipment (this crate is the default)
//customCheck = function(ply) return ply:Frags() < 10 end, – OPTIONAL, extra conditions before people can purchase the shipment or separate item
//weight = 15, – OPTIONAL, the weight of the shipment. The default is the weight of the shipment
//spareammo = 10, – OPTIONAL, Add ammo to the default amount of ammo for every weapon
//clip1 = 10, – OPTIONAL, The amount of bullets in the primary clip by default
//clip2 = 10, – OPTIONAL, The amount of bullets in the secondary clip by default
//buttonColor = Color(255, 255, 255, 255), – Optional: The color of the button in the F4 menu,
//label = “Deagle”, – Optional: the text on the button in the F4 menu

//******************************************************************************************************************************************************
//LIGHT GUNDEALER!

DarkRP.createShipment(“Glock”, {
model = “models/weapons/w_dmg_glock.mdl”, – The model of the item that hovers above the shipment
entity = “m9k_glock”, – the entity that comes out of the shipment
price = 1000, – the price of one shipment
amount = 10, – how many of the item go in one purchased shipment
separate = true, – whether the item is sold separately (usually used for guns)
pricesep = 150, – the price of a separately sold item
noship = false, – whether this item has a shipment
allowed = {TEAM_LGUN}, – OPTIONAL, which teams are allowed to buy this shipment/separate gun
shipmodel = “models/items/item_item_crate.mdl”, – OPTIONAL, the model of the shipment (this crate is the default)
//customCheck = function(ply) return ply:Frags() < 10 end, – OPTIONAL, extra conditions before people can purchase the shipment or separate item
//weight = 15, – OPTIONAL, the weight of the shipment. The default is the weight of the shipment
//spareammo = 10, – OPTIONAL, Add ammo to the default amount of ammo for every weapon
//clip1 = 10, – OPTIONAL, The amount of bullets in the primary clip by default
//clip2 = 10, – OPTIONAL, The amount of bullets in the secondary clip by default
//buttonColor = Color(255, 255, 255, 255), – Optional: The color of the button in the F4 menu,
//label = “Deagle”, – Optional: the text on the button in the F4 menu

DarkRP.createShipment(“MP5”, {
model = “models/weapons/w_hk_mp5.mdl”, – The model of the item that hovers above the shipment
entity = “m9k_mp5”, – the entity that comes out of the shipment
price = 1500, – the price of one shipment
amount = 10, – how many of the item go in one purchased shipment
separate = true, – whether the item is sold separately (usually used for guns)
pricesep = 170, – the price of a separately sold item
noship = false, – whether this item has a shipment
allowed = {TEAM_LGUN}, – OPTIONAL, which teams are allowed to buy this shipment/separate gun
shipmodel = “models/items/item_item_crate.mdl”, – OPTIONAL, the model of the shipment (this crate is the default)
//customCheck = function(ply) return ply:Frags() < 10 end, – OPTIONAL, extra conditions before people can purchase the shipment or separate item
//weight = 15, – OPTIONAL, the weight of the shipment. The default is the weight of the shipment
//spareammo = 10, – OPTIONAL, Add ammo to the default amount of ammo for every weapon
//clip1 = 10, – OPTIONAL, The amount of bullets in the primary clip by default
//clip2 = 10, – OPTIONAL, The amount of bullets in the secondary clip by default
//buttonColor = Color(255, 255, 255, 255), – Optional: The color of the button in the F4 menu,
//label = “Deagle”, – Optional: the text on the button in the F4 menu

DarkRP.createShipment(“UZI”, {
model = “models/weapons/w_uzi_imi.mdl”, – The model of the item that hovers above the shipment
entity = “m9k_uzi”, – the entity that comes out of the shipment
price = 1500, – the price of one shipment
amount = 10, – how many of the item go in one purchased shipment
separate = true, – whether the item is sold separately (usually used for guns)
pricesep = 160, – the price of a separately sold item
noship = false, – whether this item has a shipment
allowed = {TEAM_LGUN}, – OPTIONAL, which teams are allowed to buy this shipment/separate gun
shipmodel = “models/items/item_item_crate.mdl”, – OPTIONAL, the model of the shipment (this crate is the default)
//customCheck = function(ply) return ply:Frags() < 10 end, – OPTIONAL, extra conditions before people can purchase the shipment or separate item
//weight = 15, – OPTIONAL, the weight of the shipment. The default is the weight of the shipment
//spareammo = 10, – OPTIONAL, Add ammo to the default amount of ammo for every weapon
//clip1 = 10, – OPTIONAL, The amount of bullets in the primary clip by default
//clip2 = 10, – OPTIONAL, The amount of bullets in the secondary clip by default
//buttonColor = Color(255, 255, 255, 255), – Optional: The color of the button in the F4 menu,
//label = “Deagle”, – Optional: the text on the button in the F4 menu

DarkRP.createShipment(“SMG”, {
model = “models/weapons/w_fn_p90.mdl”, – The model of the item that hovers above the shipment
entity = “m9k_smgp90”, – the entity that comes out of the shipment
price = 1500, – the price of one shipment
amount = 10, – how many of the item go in one purchased shipment
separate = true, – whether the item is sold separately (usually used for guns)
pricesep = 160, – the price of a separately sold item
noship = false, – whether this item has a shipment
allowed = {TEAM_LGUN}, – OPTIONAL, which teams are allowed to buy this shipment/separate gun
shipmodel = “models/items/item_item_crate.mdl”, – OPTIONAL, the model of the shipment (this crate is the default)
//customCheck = function(ply) return ply:Frags() < 10 end, – OPTIONAL, extra conditions before people can purchase the shipment or separate item
//weight = 15, – OPTIONAL, the weight of the shipment. The default is the weight of the shipment
//spareammo = 10, – OPTIONAL, Add ammo to the default amount of ammo for every weapon
//clip1 = 10, – OPTIONAL, The amount of bullets in the primary clip by default
//clip2 = 10, – OPTIONAL, The amount of bullets in the secondary clip by default
//buttonColor = Color(255, 255, 255, 255), – Optional: The color of the button in the F4 menu,
//label = “Deagle”, – Optional: the text on the button in the F4 menu

DarkRP.createShipment(“Honeybadger”, {
model = “models/weapons/w_aac_honeybadger.mdl”, – The model of the item that hovers above the shipment
entity = “m9k_honeybadger”, – the entity that comes out of the shipment
price = 1800, – the price of one shipment
amount = 10, – how many of the item go in one purchased shipment
separate = true, – whether the item is sold separately (usually used for guns)
pricesep = 200, – the price of a separately sold item
noship = false, – whether this item has a shipment
allowed = {TEAM_LGUN}, – OPTIONAL, which teams are allowed to buy this shipment/separate gun
shipmodel = “models/items/item_item_crate.mdl”, – OPTIONAL, the model of the shipment (this crate is the default)
//customCheck = function(ply) return ply:Frags() < 10 end, – OPTIONAL, extra conditions before people can purchase the shipment or separate item
//weight = 15, – OPTIONAL, the weight of the shipment. The default is the weight of the shipment
//spareammo = 10, – OPTIONAL, Add ammo to the default amount of ammo for every weapon
//clip1 = 10, – OPTIONAL, The amount of bullets in the primary clip by default
//clip2 = 10, – OPTIONAL, The amount of bullets in the secondary clip by default
//buttonColor = Color(255, 255, 255, 255), – Optional: The color of the button in the F4 menu,
//label = “Deagle”, – Optional: the text on the button in the F4 menu
[/lua]

I can’t find <eof> or the symbol…

Second Error:

Server Console Msg: [ERROR] addons/darkrpmodification/lua/darkrp_customthings/jobs.lua:52: function arguments expected near ‘or’.

That file:

[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:

For examples and explanation please visit this wiki page:
http://wiki.darkrp.com/index.php/DarkRP:CustomJobFields
)

Add jobs under the following line:
---------------------------------------------------------------------------*/
TEAM_THIEF = DarkRP.createJob(“Thief”, {
color = Color(102, 102, 102, 255),
model = “models/player/group01/cookies114.mdl”,
description = [[You are a Thief! Your job is to steal, raid and mug, houses, bases and people! DON’T FORGET TO ADVERT!]],
weapons = {“unarrest_stick”, “keypad_cracker”, “lockpick”},
command = “thief”,
max = 5,
salary = 50,
admin = 0,
vote = false,
hasLicense = false,
})

 TEAM_LGUN = DarkRP.createJob("Light Gun Dealer", {
    color = Color(102, 102, 102, 255),
    model = "models/player/monk.mdl",
    description = [[A Light Gun Dealer is a person that can sell light guns such as Pistols and SMGs.]],
    weapons = {},
    command = "light",
    max = 3,
    salary = 75,
    admin = 0,
    vote = false,
    hasLicense = false,
 })
 
 TEAM_STAFF = DarkRP.createJob("Staff on Duty", {
    color = Color(0, 0, 0, 255),
    model = "models/player/anon/anon.mdl",
    description = [[This job is only for staff members. Staff are not allowed to RP as this job. However, they are allowed to be in No-clip, God-mode and Cloak!]],
    weapons = {"arrest_stick", "unarrest_stick", "weapon_ak472", "stunstick", "door_ram", "weaponchecker", "weapon_hack_phone", "keypad_cracker", "m9k_minigun"},
    command = "staff",
    max = 0,
    salary = 0,
    admin = 0,
    vote = false,
    hasLicense = true,
	customCheck = function(ply) return CLIENT or ply:IsUserGroup("mod") or ply:IsAdmin() or ply:IsSuperAdmin or ply:IsUserGroup("owner") end,
	CustomCheckFailMsg = "This job is only for staff members"
 })
 
      TEAM_OWNER = DarkRP.createJob("Owner Job", {
    color = Color(0, 0, 0, 255),
    model = "models/player/anon/anon.mdl",
    description = [[This job is specially for RogerThatGaming, the owner of this awesome server!]],
    weapons = {"arrest_stick", "unarrest_stick", "weapon_ak472", "stunstick", "door_ram", "weaponchecker", "weapon_hack_phone", "keypad_cracker", "m9k_minigun"},
    command = "staff",
    max = 0,
    salary = 0,
    admin = 0,
    vote = false,
    hasLicense = true,
	customCheck = function(ply) return CLIENT or ply:IsUserGroup("owner") end,
	CustomCheckFailMsg = "This job is only for RogerThatGaming, the owner"
 })

/---------------------------------------------------------------------------
Define which team joining players spawn into and what team you change to if demoted
---------------------------------------------------------------------------
/
GAMEMODE.DefaultTeam = TEAM_CITIZEN

/---------------------------------------------------------------------------
Define which teams belong to civil protection
Civil protection can set warrants, make people wanted and do some other police related things
---------------------------------------------------------------------------
/
GAMEMODE.CivilProtection = {
[TEAM_POLICE] = true,
[TEAM_CHIEF] = true,
[TEAM_MAYOR] = true,
}

/---------------------------------------------------------------------------
Jobs that are hitmen (enables the hitman menu)
---------------------------------------------------------------------------
/
DarkRP.addHitmanTeam(TEAM_MOB)
[/lua]

I know that it is something to do with my customCheck, but what??

Third Error:

Server Console Msg: [ERROR] gamemodes/darkrp/gamemode/config/jobs.lua:154: ') ’ (expected to close ‘(’ at line 135) near customCheck

That File:

[lua]
– People often copy jobs. When they do, the GM table does not exist anymore.
– This line makes the job code work both inside and outside of gamemode files.
– You should not copy this line into your code.
local GAMEMODE = GAMEMODE or GM
/--------------------------------------------------------
Default teams. Please do not edit this file. Please use the darkrpmod addon instead.
--------------------------------------------------------
/
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 = GAMEMODE.Config.normalsalary,
admin = 0,
vote = false,
hasLicense = false,
candemote = false
})

TEAM_POLICE = DarkRP.createJob(“Police”, {
color = Color(25, 25, 170, 255),
model = {“models/player/elispolice/police.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_glock2”, “stunstick”, “door_ram”, “weaponchecker”},
command = “cp”,
max = 5,
salary = 150,
admin = 0,
vote = true,
hasLicense = true,
ammo = {
[“pistol”] = 60,
}
})

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 = {},
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_HGUN = DarkRP.createJob(“Heavy Gun Dealer”, {
color = Color(255, 140, 0, 255),
model = “models/player/monk.mdl”,
description = [[A Heavy Gun Dealer is a 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 = {},
command = “heavy”,
max = 2,
salary = GAMEMODE.Config.normalsalary,
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(“Police 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”, “weapon_deagle2”, “stunstick”, “door_ram”, “weaponchecker”},
command = “chief”,
max = 1,
salary = 250,
admin = 0,
vote = false,
hasLicense = true,
chief = true,
NeedToChangeFrom = TEAM_POLICE
customCheck = function(ply) return CLIENT or ply:IsUserGroup(“alpha”) or ply:IsUserGroup(“beta”) or ply:IsUserGroup(“mod”) or ply:IsUserGroup(“owner”) or ply:IsAdmin() or ply:IsSuperAdmin() end,
CustomCheckFailMsg = “This job is Beta Donator +”
})

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 = 300,
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
})

– Compatibility for when default teams are disabled
TEAM_CITIZEN = TEAM_CITIZEN or -1
TEAM_POLICE = TEAM_POLICE or -1
TEAM_GANG = TEAM_GANG or -1
TEAM_MOB = TEAM_MOB or -1
TEAM_GUN = TEAM_GUN or -1
TEAM_MEDIC = TEAM_MEDIC or -1
TEAM_CHIEF = TEAM_CHIEF or -1
TEAM_MAYOR = TEAM_MAYOR or -1
TEAM_HOBO = TEAM_HOBO or -1

/*

HOW TO MAKE A DOOR GROUP

AddDoorGroup(“NAME OF THE GROUP HERE, you see this when looking at a door”, Team1, Team2, team3, team4, etc.)

The default door groups, can also be used as examples:
*/
AddDoorGroup(“Law Only”, TEAM_CHIEF, TEAM_POLICE, TEAM_MAYOR)
AddDoorGroup(“Gundealer only”, TEAM_GUN)

/*

HOW TO MAKE AN AGENDA

AddAgenda(Title of the agenda, Manager (who edits it), Listeners (the ones who just see and follow the agenda))

The default agenda’s, can also be used as examples:
*/
//AddAgenda(“Gangster’s agenda”, TEAM_MOB, {TEAM_GANG})
//AddAgenda(“Police agenda”, TEAM_MAYOR, {TEAM_CHIEF, TEAM_POLICE})

/*

HOW TO MAKE A GROUP CHAT

Pick one!
GAMEMODE:AddGroupChat(List of team variables separated by comma)

or

GAMEMODE:AddGroupChat(a function with ply as argument that returns whether a random player is in one chat group)
This one is for people who know how to script Lua.

*/
GAMEMODE:AddGroupChat(function(ply) return ply:isCP() end)
GAMEMODE:AddGroupChat(TEAM_MOB, TEAM_GANG)

/---------------------------------------------------------------------------
Define which team joining players spawn into and what team you change to if demoted
---------------------------------------------------------------------------
/
GAMEMODE.DefaultTeam = TEAM_CITIZEN

/---------------------------------------------------------------------------
Define which teams belong to civil protection
Civil protection can set warrants, make people wanted and do some other police related things
---------------------------------------------------------------------------
/
GAMEMODE.CivilProtection = {
[TEAM_POLICE] = true,
[TEAM_CHIEF] = true,
[TEAM_MAYOR] = true,
}

/---------------------------------------------------------------------------
Enable hitman goodies on this team
---------------------------------------------------------------------------
/
DarkRP.addHitmanTeam(TEAM_MOB)

/---------------------------------------------------------------------------
Default demote groups
---------------------------------------------------------------------------
/
DarkRP.createDemoteGroup(“Cops”, {TEAM_POLICE, TEAM_CHIEF})
DarkRP.createDemoteGroup(“Gangsters”, {TEAM_GANG, TEAM_MOB})
[/lua]

That’s it. Thanks for any help! I am new to lua and am still learning how to fix and find errors like these.

Thanks again!
~RogerThat

<eof> stands for “End of File” and means that you forgot to close some bracket somewhere.

In your case, you forgot a closing bracket on EVERY createShipment call. After every


label = 

line, add a ‘}’, without quotes obviously.

For your 2nd error, I can’t spot the mistakes.

In your last piece of code, add a comma on line 153 (behind NeedToChangeFrom = TEAM_POLICE.

The problem here seems to be that you are using DarkRP.

Ohh, okay, thanks for help on that one! I am guessing I have to have a } at the end of each shipment?
EDIT: And a normal )

[editline]24th July 2014[/editline]

Hmmm, the only thing I need now is the fact that it expects a function argument near or…

What this supposed to do?


ply:IsUserGroup(ing">"mod")

I believe it is you issue.

No, that is Facepunch’s code parser fucking up. It’s the website doing that, not his actual code.

Yep, everything works fine now, nothing is wrong on the server.

In the end I changed that line of code to

[lua]
customCheck = function(ply) return ply:GetNWString(“usergroup”) == “owner” or “superadmin” or “admin” or “mod” (and whatever else I wanted here) end,
CustomCheckFailMsg = “(message)”
[/lua]

I think doing it that way works better, I’m not sure though, might just be me…

Edit: I meant to put agree on the post above, not disagree xD

In the future, refresh the page and you can change your rating.