Hello TS3 community.I am new to ts3 plugin making and I want to make a plugin that send a message to clienid every x second but if I use the Sleep(x); the entire ts client freezes since the entire plugin thread wait for delay.
Please give me some advice to workaround this.

Code so far:

//
case MENU_ID_CLIENT_1:
/* Menu client 1 was triggered */
anyID client = selectedItemID;
int times = 5;
int x = 1000;
for (int i = 0; i < times; i++) {
Sleep(x);
ts3Functions.requestSendPrivateTextMsg(serverConne ctionHandlerID, "Text message back!", client, NULL);
}
break;
//