ToggleF4Menu Error...

This is my Error in the Logs

[ERROR] gamemodes/darkrp/gamemode/modules/base/cl_gamemode_functions.lua:27: attempt to call field ‘toggleF4Menu’ (a nil value)

  1. Call - gamemodes/darkrp/gamemode/modules/base/cl_gamemode_functions.lua:27
  2. unknown - gamemodes/darkrp/gamemode/modules/base/cl_gamemode_functions.lua:62

My Jobrelated.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(“Zivilist”, {
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 = “citizenn”,
max = 0,
salary = GAMEMODE.Config.normalsalary,
admin = 0,
vote = false,
hasLicense = false,
candemote = false,
category = “Zivilist”,
})

TEAM_POLICE = DarkRP.createJob(“Polizei”, {
color = Color(25, 25, 170, 255),
model = “models/player/santosrp/male_02_santosrp.mdl”, “models/player/santosrp/male_04_santosrp.mdl”,
description = [[Befreie die Stadt von Kriminellen!]],
weapons = {“arrest_stick”, “unarrest_stick”, “stunstick”, “door_ram”, “weaponchecker”, “speedchecker”},
command = “polizeii”,
max = 4,
salary = 3000,
admin = 0,
vote = false,
hasLicense = true,
category = “Staat”,
})

TEAM_BANK = DarkRP.createJob(“Banker”, {
color = Color(25, 25, 25, 255),
model = {“models/mossman.mdl”},
description = [[Die Bankerin aus der Stadt. Bei ihr ist dein Geld in guten Händen!]],
weapons = {""},
command = “bankerjob”,
max = 2,
salary = 3200,
admin = 0,
vote = false,
hasLicense = false,
category = “Zivilist”,
})

TEAM_OWNER = DarkRP.createJob(“Owner im Dienst”, {
color = Color(25, 25, 25, 255),
model = “models/player/lordvipes/mk9_cyrax/cyrax.mdl”,
description = [[Euer cooler Owner ist am Server verbessern]],
weapons = {""},
command = “owner”,
max = 2,
salary = 1000,
admin = 0,
vote = false,
hasLicense = false,
category = “Andere”,
customCheck = function(ply) return ply:GetUserGroup() == “Owner” end
})

TEAM_GANG = DarkRP.createJob(“emreee”, {
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 = “gangstere”,
max = 3,
salary = 150,
admin = 0,
vote = false,
hasLicense = false,
category = “Kriminelle”,
})

TEAM_MOB = DarkRP.createJob(“Emre is cool”, {
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 = 150,
admin = 0,
vote = false,
hasLicense = false,
category = “Kriminelle”,
})

TEAM_GUN = DarkRP.createJob(“Waffenhaendler”, {
color = Color(255, 140, 0, 255),
model = {“models/monk.mdl”},
description = [[A Gun Dealer is the only 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 = “gundealer”,
max = 2,
salary = 500,
admin = 0,
vote = false,
hasLicense = false,
category = “Zivilist”,
})

TEAM_ROBBER = DarkRP.createJob(“Bank Raeuber”, {
color = Color(255, 140, 0, 255),
model = “models/player/suits/robber_shirt.mdl”,
description = [[Plane deinen Bankraub, fuehre ihn aus, CASH!]],
weapons = {“vault_cracker”, “vault_drill”},
command = “bankrobber”,
max = 5,
salary = 150,
admin = 0,
vote = false,
hasLicense = false,
category = “Kriminelle”,
})

TEAM_SEK = DarkRP.createJob(“S.E.K.”, {
color = Color(255, 140, 0, 255),
model = “models/player/r6s_doc.mdl”,
description = [[Rueckt bei Raids usw… vor. Sie sind das Sonder Einsatz Kommando]],
weapons = {“door_ram”, “fas2_sg550”},
command = “sek”,
max = 5,
salary = 8000,
admin = 0,
vote = true,
hasLicense = true,
category = “Staat”,
})

TEAM_DIEB = DarkRP.createJob(“Dieb”, {
color = Color(255, 140, 0, 255),
model = “models/csgoanarchist4pm.mdl”,
description = [[Raube andere aus.]],
weapons = {“lockpick”},
command = “dieb”,
max = 5,
salary = 150,
admin = 0,
vote = false,
hasLicense = false,
category = “Kriminelle”,
})

TEAM_MILIZ = DarkRP.createJob(“Afrikanische Miliz”, {
color = Color(255, 140, 0, 255),
model = “models/csgopirate3pm.mdl”,
description = [[Zusammen mit deinen Bruedern beherrscht ihr die Stadt!]],
weapons = {“lockpick”, “fas2_mac11”},
command = “miliz”,
max = 5,
salary = 150,
admin = 0,
vote = false,
hasLicense = false,
category = “Kriminelle”,
customCheck = function(ply) return ply:GetUserGroup() == “Donator” end
})

TEAM_BLACK = DarkRP.createJob(“Schwarzmarkthaendler”, {
color = Color(255, 140, 0, 255),
model = {“models/Barney.mdl”},
description = [[Die staerksten Waffen gibt es bei ihm zu kaufen!]],
weapons = {},
command = “blackhandler”,
max = 4,
salary = 150,
admin = 0,
vote = false,
hasLicense = false,
category = “Kriminelle”,
})

TEAM_MEDIC = DarkRP.createJob(“Arzt”, {
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 = 150,
admin = 0,
vote = false,
hasLicense = false,
medic = true,
category = “Zivilist”,
})

TEAM_CHIEF = DarkRP.createJob(“Polizei Einsatzleiter”, {
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 = 1500,
admin = 0,
vote = true,
hasLicense = true,
chief = true,
category = “Staat”,
})

TEAM_MAYOR = DarkRP.createJob(“Buergermeister”, {
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 = 15000,
admin = 0,
vote = true,
hasLicense = false,
mayor = true,
category = “Staat”,
})

TEAM_HOBO = DarkRP.createJob(“Penner”, {
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 = 1,
admin = 0,
vote = false,
hasLicense = false,
candemote = false,
hobo = true,
category = “Zivilist”,
})

if not DarkRP.disabledDefaults[“modules”][“hungermod”] then
TEAM_COOK = DarkRP.createJob(“Cook”, {
color = Color(238, 99, 99, 255),
model = “models/player/mossman.mdl”,
description = [[As a cook, it is your responsibility to feed the other members of your city.
You can spawn a microwave and sell the food you make:
/buymicrowave]],
weapons = {},
command = “cook”,
max = 2,
salary = 45,
admin = 0,
vote = false,
hasLicense = false,
cook = true
})
end

– 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
TEAM_COOK = TEAM_COOK or -1

– Door groups
AddDoorGroup(“Cops and Mayor only”, TEAM_CHIEF, TEAM_POLICE, TEAM_MAYOR)
AddDoorGroup(“Gundealer only”, TEAM_GUN)

– Agendas
DarkRP.createAgenda(“Gangster’s agenda”, TEAM_MOB, {TEAM_GANG})
DarkRP.createAgenda(“Police agenda”, {TEAM_MAYOR, TEAM_CHIEF}, {TEAM_POLICE})

– Group chats
DarkRP.createGroupChat(function(ply) return ply:isCP() end)
DarkRP.createGroupChat(TEAM_MOB, TEAM_GANG)
DarkRP.createGroupChat(function(listener, ply) return not ply or ply:Team() == listener:Team() end)

– Initial team when first spawning
GAMEMODE.DefaultTeam = TEAM_CITIZEN

– Teams that belong to Civil Protection
GAMEMODE.CivilProtection = {
[TEAM_POLICE] = true,
[TEAM_CHIEF] = true,
[TEAM_MAYOR] = true,
}

– Hitman team
DarkRP.addHitmanTeam(TEAM_MOB)

– Demote groups
DarkRP.createDemoteGroup(“Cops”, {TEAM_POLICE, TEAM_CHIEF})
DarkRP.createDemoteGroup(“Gangsters”, {TEAM_GANG, TEAM_MOB})

– Default categories
DarkRP.createCategory{
name = “Zivilist”,
categorises = “jobs”,
startExpanded = true,
color = Color(0, 107, 0, 255),
canSee = fp{fn.Id, true},
sortOrder = 100,
}

DarkRP.createCategory{
name = “Staat”,
categorises = “jobs”,
startExpanded = true,
color = Color(25, 25, 170, 255),
canSee = fp{fn.Id, true},
sortOrder = 101,
}

DarkRP.createCategory{
name = “Kriminelle”,
categorises = “jobs”,
startExpanded = true,
color = Color(75, 75, 75, 255),
canSee = fp{fn.Id, true},
sortOrder = 101,
}

DarkRP.createCategory{
name = “Andere”,
categorises = “jobs”,
startExpanded = true,
color = Color(0, 107, 0, 255),
canSee = fp{fn.Id, true},
sortOrder = 255,
}

[editline]3rd December 2016[/editline]

Fixxed

I deleted gDrugs from my addons folder and guess what? It works haha.
No leaked Addons, I think gDrugs is broken dunno