Hook help, return nil



Your vars (b, err) that you are assigning the hook to is empty, be it your calling it incorrectly of it simply doesn’t exist.

Print out the table (functionx124whatever) and see the subtext in it.

Edit : Fixed

Come on dude, don’t be a dick about sniping your threads :v
If you could fix it, you won’t believe how useful it will be for someone else in the future that has the same doubt than you, keep it on and show how you solved your issue, even if it’s something dumb, you won’t believe how many times it helped me to solve some issues i got in the past without asking it to anyone

Sorry, i repost, can you unrate me dumb please thanks you .

local hh = hook.GetTable().Menu
local List = {}

if hh then

	for _, v in pairs( hh ) do
		local b, err = hook.Call( v ) 
		if b then
			table.insert( List, err )



Fixed :

Localized hook.Call because with my gamemode hook.call it’s a nil value

hook.Call = _G.hook.Call