Can someone explain me the reason for this function that I added to the DrawPhysgunBeam hook is not working?

Can someone explain me the reason for this function that I added to the DrawPhysgunBeam hook is not working?


hook.Add("DrawPhysgunBeam", "Zignd_DrawPhysgunBeam", function(ply, physgun, enabled, targert, bone, hitPos)
	print("Test")
	return false
end)

What file is it in?

It’s on a normal lua file located in lua/ and it’s being called manually from server side with lua_openscript.

It needs to be ran clientside. Use lua_openscript_cl