Error when trying to use f4 menu when a certain job?
2 replies, posted
I am getting a error when I become my miner job it just gives me an error any help on what to do would be really nice.
[ERROR] gamemodes/prisonroleplay/gamemode/modules/base/cl_gamemode_functions.lua:23: attempt to index local 'jobTable' (a nil value)
1. Call - gamemodes/prisonroleplay/gamemode/modules/base/cl_gamemode_functions.lua:23
2. unknown - gamemodes/prisonroleplay/gamemode/modules/base/cl_gamemode_functions.lua:62
It shows this error every-time I press f4 to use the f4 menu but only happens on this custom job.
Okay, and once again, in every single post, of every single person: What are we supposed to do now? We don`t know anything by the error. We know that in cl_gamemode_functions line 23 there is a error with jobTable. Thats it. We have no code, we have no details, nothing
function GM:ShowSpare2()
local jobTable = LocalPlayer():getJobTable()
if jobTable.ShowSpare2 then
return jobTable.ShowSpare2(LocalPlayer())
end
DarkRP.toggleF4Menu()
end
AND
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
if not self.Config.deadvoice and not ply:Alive() and string.find(string.lower(bind), "voicerecord") then return true end
end
Sorry, you need to Log In to post a reply to this thread.