What's wrong with this timer?



function dupa()
	timer.Simple(5, function()
		Msg("Test number 1!") // This message doesn't appear after 5 seconds.
		chat.Add("Test number 2!") // This too
	end)
end

concommand.Add("dupa", dupa)


chat.Add isn’t a function. chat.AddText is.

Works. I’m curious why I didn’t saw any debug messages.
EDIT: The Timer doesn’t work when the console is open.

Being in singleplayer causes garry’smod to pause when in the escape menu or console that’s why.