usermessage problem

EDIT: OH sorry, I missclicked to wrong section. It should be “Developer Discussion” :S

I try to make an addon for TTT Gamemode (serverside).

Problem is wiki says usermessage.Hook is shared. So I thought perfect. So I tried this function and it doesn’t work. I don’t receive anything :frowning:

if GAMEMODE.Name == "Trouble in Terrorist Town" then
	print("[ET]: Gamemode", GAMEMODE.Name)

	local function CustomReceiveGameMsg(um)
	   local text = um:ReadString()
	   local special = um:ReadBool()

	usermessage.Hook("game_msg", CustomReceiveGameMsg)

A other idea?

EDIT2: Problem solve… had to make other way