tasklist . add_task ( [ ] ( int first , bool second ) -> ktwait { using namespace std :: chrono_literals ; SF -> getSAMP ( ) -> getChat ( ) -> AddChatMessage ( - 1 , "#1 First: %i; Second: %d;" , first , second ) ; co_await 5 s ; SF -> getSAMP ( ) -> getChat ( ) -> AddChatMessage ( - 1 , "#2 First: %i; Second: %d;" , first , second ) ; } , 3 , true ) ;