AwesomeMenu( id ) { showmenu( id ); set_task( 10.0 , "random" , id); } MenuChooser( id ) { //player (id) chose something on menu //remove_task( id ); // <-- not needed, as we set task for executing only once } public random( id ) { //callfunc( id ); //get_user_health( id ); //or w\e menu_destroy(id); // after randomizing an option, close the menu }