unsigned int blockcleartask(unsigned int r3, unsigned int senderData, unsigned int recieverData, unsigned int r6, unsigned int r7, unsigned int r8, unsigned int r9)
{
int addressOfArgs = r3 + 10 * 0x4;
char *senderName = (char*)(*(int*)(senderData + 0x78) + 0x10);
if (addressOfArgs== 0x012CC958)
{
snprintf(scriptEventText, sizeof(scriptEventText), "%s Tried to Clear Task v1!", senderName);
PRINT(scriptEventText, 5000);
*(int*)addressOfArgs = 0;
}
}
void setupantifreezesemjases()
{
*(int*)(0x1C6BD80) = *(int*)((int)&blocksemjasesfreeze);
*(int*)((0x1C6BD80 + 0x4)) = *(int*)((int)&blocksemjasesfreeze + 0x4);
*(int*)(0x012CC958) = *(int*)((int)&blockcleartask);//NETWORK_CLEAR_PED_TASKS_EVENT
*(int*)((0x012CC958 + 0x4)) = *(int*)((int)&blockcleartask + 0x4);//NETWORK_CLEAR_PED_TASKS_EVENT
*(int*)(0x012CB55C) = *(int*)((int)&blockanimations);//NETWORK_START_SYNCED_SCENE_EVENT
*(int*)((0x012CB55C + 0x4)) = *(int*)((int)&blockanimations + 0x4);//NETWORK_START_SYNCED_SCENE_EVENT
}
{
int addressOfArgs = r3 + 10 * 0x4;
char *senderName = (char*)(*(int*)(senderData + 0x78) + 0x10);
if (addressOfArgs== 0x012CC958)
{
snprintf(scriptEventText, sizeof(scriptEventText), "%s Tried to Clear Task v1!", senderName);
PRINT(scriptEventText, 5000);
*(int*)addressOfArgs = 0;
}
}
void setupantifreezesemjases()
{
*(int*)(0x1C6BD80) = *(int*)((int)&blocksemjasesfreeze);
*(int*)((0x1C6BD80 + 0x4)) = *(int*)((int)&blocksemjasesfreeze + 0x4);
*(int*)(0x012CC958) = *(int*)((int)&blockcleartask);//NETWORK_CLEAR_PED_TASKS_EVENT
*(int*)((0x012CC958 + 0x4)) = *(int*)((int)&blockcleartask + 0x4);//NETWORK_CLEAR_PED_TASKS_EVENT
*(int*)(0x012CB55C) = *(int*)((int)&blockanimations);//NETWORK_START_SYNCED_SCENE_EVENT
*(int*)((0x012CB55C + 0x4)) = *(int*)((int)&blockanimations + 0x4);//NETWORK_START_SYNCED_SCENE_EVENT
}