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:

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