Timer.Simple Help

This seems to run the command immediately after it is “triggered”, but I would like to have it run 5 secons after it’s “triggered”. What am I doing wrong.

[lua]timer.Simple(5, game.ConsoleCommand("changelevel gm_flatgrass

timer.Simple( number:delay, function:tocall, varag:arguments … )


timer.Simple( 5, game.ConsoleCommand, "changelevel gm_flatgrass
" )

When you have game.ConsoleCommand( "changelvel gm_flatgrass
" ) as the argument, it runs the function and tries to use the output as the function. Returns nil, so in five seconds you’d get a timer error ( but you changed the map so it never actually gets to run the timer ).