Error When i open f4 menu

When ever i open f4 i get this error. Any help?

I have reinstalled it, scanned for backdoors and lua viruses.

[ERROR] A runtime error has occurred in “lua/includes/extensions/table.lua” on line 94.
The best help I can give you is this:

bad argument #1 to ‘pairs’ (table expected, got nil)

Hints:
- No hints, sorry.

The responsibility for the error above lies with (the authors of) one (or more) of these files:
1. lua/includes/extensions/table.lua on line 94
2. gamemodes/darkrp/gamemode/libraries/fn.lua on line 84
3. gamemodes/darkrp/gamemode/libraries/fn.lua on line 84
4. gamemodes/darkrp/gamemode/libraries/fn.lua on line 84
5. gamemodes/darkrp/gamemode/libraries/fn.lua on line 84
6. gamemodes/darkrp/gamemode/modules/f4menu/cl_entitiestab.lua on line 104
7. gamemodes/darkrp/gamemode/modules/f4menu/cl_entitiestab.lua on line 84
8. gamemodes/darkrp/gamemode/modules/f4menu/cl_categories.lua on line 100
9. function ‘InvalidateLayout’
10. lua/vgui/dcategorycollapse.lua on line 253
------- End of Simplerr error -------

  1. error - [C]:-1
  2. b - gamemodes/darkrp/gamemode/libraries/simplerr.lua:530
    3. customCheck - gamemodes/darkrp/gamemode/libraries/fn.lua:84
    4. canBuy - gamemodes/darkrp/gamemode/modules/f4menu/cl_entitiestab.lua:104
    5. f - gamemodes/darkrp/gamemode/modules/f4menu/cl_entitiestab.lua:84
    6. unknown - gamemodes/darkrp/gamemode/modules/f4menu/cl_categories.lua:100
    7. InvalidateLayout - [C]:-1
    8. unknown - lua/vgui/dcategorycollapse.lua:253

Could you post these lines and or files?
6. gamemodes/darkrp/gamemode/modules/f4menu/cl_entitiestab.lua on line 104
7. gamemodes/darkrp/gamemode/modules/f4menu/cl_entitiestab.lua on line 84
8. gamemodes/darkrp/gamemode/modules/f4menu/cl_categories.lua on line 100

Line 84 Entities

local can, important, _, price = canBuy(v.DarkRPItem)

Line 104 Entities

if item.customCheck and not item.customCheck(ply) then return false, true end

line 100 categories

f(self.Contents)

[editline]24th April 2016[/editline]

Here are the link to the files if you need them

http://pastebin.com/bzC5yUNr Entitiestab

http://pastebin.com/zNu3peWH Categories

You should try getting the newest version of DarkRP and removing the darkrpmodification from the addons. Then start it up. You probably screwed up creating an entity in darkrpmodification. Post the entities.lua or what ever it is

lmao…

–[[---------------------------------------------------------------------------
DarkRP custom entities

This file contains your custom entities.
This file should also contain entities from DarkRP that you edited.

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

The default entities can be found here:

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

Add entities under the following line:
---------------------------------------------------------------------------]]
DarkRP.createEntity( “VIP Ammo Kit”, {
ent = “cw_ammo_kit_regular”,
model = “models/props_lab/box01a.mdl”,
price = 50,
max = 100,
cmd = “buyvipammo”,
category = “Ammo”,
– CustomCheck
})

DarkRP.createEntity( “Ciggarettes”, {
ent = “durgz_cigarette”,
model = “models/boxopencigshib.mdl”,
price = 100,
max = 5,
cmd = “buycigs”,
allowed = {TEAM_DRUGS},
category = “Drugs”,
– CustomCheck
})

DarkRP.createEntity( “Aspirin”, {
ent = “durgz_aspirin”,
model = “models/jaanus/aspbtl.mdl”,
price = 500,
max = 5,
cmd = “buyaspirin”,
allowed = {TEAM_DRUGS},
category = “Drugs”,
– CustomCheck
})

DarkRP.createEntity( “Cocaine”, {
ent = “durgz_cocaine”,
model = “models/cocn.mdl”,
price = 2500,
max = 5,
cmd = “buycocaine”,
allowed = {TEAM_DRUGS},
category = “Drugs”,
– CustomCheck
})
DarkRP.createEntity( “Heroine”, {
ent = “durgz_heroine”,
model = “models/katharsmodels/syringe_out/syringe_out.mdl”,
price = 1250,
max = 5,
cmd = “buyheroine”,
allowed = {TEAM_DRUGS},
category = “Drugs”,
– CustomCheck
})

DarkRP.createEntity( “Shrooms”, {
ent = “durgz_mushroom”,
model = “models/ipha/mushroom_small.mdl”,
price = 750,
max = 5,
cmd = “buyshrooms”,
allowed = {TEAM_DRUGS},
category = “Drugs”,
– CustomCheck
})
DarkRP.createEntity( “PCP”, {
ent = “durgz_pcp”,
model = “models/marioragdoll/super mario galaxy/star/star.mdl”,
price = 1000,
max = 5,
cmd = “buypcp”,
allowed = {TEAM_DRUGS},
category = “Drugs”,
– CustomCheck
})
DarkRP.createEntity( “Water”, {
ent = “durgz_water”,
model = “models/drug_mod/the_bottle_of_water.mdl”,
price = 50,
max = 5,
cmd = “buywater”,
allowed = {TEAM_DRUGS},
category = “Drugs”,
– CustomCheck
})

[editline]24th April 2016[/editline]

Thanks, the co-owner of my server removed printers from the entities but left them in entities.lua, didnt think it could be that simple! xD