I've tried many various types of things to try to fix this issue, from fresh install, to different types of F4 Menus but nothing works, even as well in the disabled defaults I have the F4 Menu disabled.
This is the error I receive.
[ERROR] gamemodes/thepurge/gamemode/modules/base/cl_gamemode_functions.lua:27: attempt to call field 'toggleF4Menu' (a nil value)
1. Call - gamemodes/thepurge/gamemode/modules/base/cl_gamemode_functions.lua:27
2. unknown - gamemodes/thepurge/gamemode/modules/base/cl_gamemode_functions.lua:62
And these are the lines from 20 to 63 to encode the full functions.
[code] function GM:ShowSpare2()
local jobTable = LocalPlayer():getJobTable()
if jobTable.ShowSpare2 then
return jobTable.ShowSpare2(LocalPlayer())
end
DarkRP.toggleF4Menu()
end
function GM:PlayerStartVoice(ply)
if ply == LocalPlayer() then
ply.DRPIsTalking = true
return -- Not the original rectangle for yourself! ugh!
end
self.Sandbox.PlayerStartVoice(self, ply)
end
function GM:PlayerEndVoice(ply)
if ply == LocalPlayer() then
ply.DRPIsTalking = false
return
end
self.Sandbox.PlayerEndVoice(self, ply)
end
function GM:OnPlayerChat()
end
local FKeyBinds = {
["gm_showhelp"] = "ShowHelp",
["gm_showteam"] = "ShowTeam",
["gm_showspare1"] = "ShowSpare1",
["gm_showspare2"] = "ShowSpare2"
}
function GM:PlayerBindPress(ply, bind, pressed)
self.Sandbox.PlayerBindPress(self, ply, bind, pressed)
local bnd = string.match(string.lower(bind), "gm_[a-z]+[12]?")
if bnd and FKeyBinds[bnd] then
hook.Call(FKeyBinds[bnd], GAMEMODE)
end [/code]
Any help would be greatly appreciated, and if I am completely doing something wrong please let me know.
Thanks.
bump
Sorry, you need to Log In to post a reply to this thread.