bool CALLBACK Present(CONST RECT *pSourceRect, CONST RECT *pDestRect, HWND hDestWindowOverride, CONST RGNDATA *pDirtyRegion)
{
if (SUCCEEDED(SF->getRender()->BeginRender()) && act)
{
actor_info *actorInfo = SF->getSAMP()->getPlayers()->pRemotePlayer[id]->pPlayerData->pSAMP_Actor->pGTA_Ped;
CPed* Ped = GAME->GetPools()->GetPed((DWORD*)actorInfo);
float posX[15], posY[15];
int counter = 0;
CVector vPos[15];
for (int i = 1; i <= 53; i++)
{
switch (i)
{
case 1:
Ped->GetTransformedBonePosition((eBone)i, &vPos[counter]);
counter++;
case 3:
Ped->GetTransformedBonePosition((eBone)i, &vPos[counter]);
counter++;
case 4:
Ped->GetTransformedBonePosition((eBone)i, &vPos[counter]);
counter++;
case 5:
Ped->GetTransformedBonePosition((eBone)i, &vPos[counter]);
counter++;
case 6:
Ped->GetTransformedBonePosition((eBone)i, &vPos[counter]);
counter++;
case 22:
Ped->GetTransformedBonePosition((eBone)i, &vPos[counter]);
counter++;
case 23:
Ped->GetTransformedBonePosition((eBone)i, &vPos[counter]);
counter++;
case 25:
Ped->GetTransformedBonePosition((eBone)i, &vPos[counter]);
counter++;
case 32:
Ped->GetTransformedBonePosition((eBone)i, &vPos[counter]);
counter++;
case 33:
Ped->GetTransformedBonePosition((eBone)i, &vPos[counter]);
counter++;
case 35:
Ped->GetTransformedBonePosition((eBone)i, &vPos[counter]);
counter++;
case 42:
Ped->GetTransformedBonePosition((eBone)i, &vPos[counter]);
counter++;
case 43:
Ped->GetTransformedBonePosition((eBone)i, &vPos[counter]);
counter++;
case 52:
Ped->GetTransformedBonePosition((eBone)i, &vPos[counter]);
counter++;
case 53:
Ped->GetTransformedBonePosition((eBone)i, &vPos[counter]);
counter++;
}
}
for (int i = 0; i <= 14; i++) SF->getGame()->convert3DCoordsToScreen(vPos[i].fX, vPos[i].fY, vPos[i].fZ, &posX[i], &posY[i]);
SF->getRender()->DrawLine(posX[0], posY[0], posX[1], posY[1], 2, 0xFFFFFFFF);
SF->getRender()->DrawLine(posX[0], posY[0], posX[11], posY[11], 2, 0xFFFFFFFF);
SF->getRender()->DrawLine(posX[0], posY[0], posX[13], posY[13], 2, 0xFFFFFFFF);
SF->getRender()->DrawLine(posX[1], posY[1], posX[2], posY[2], 2, 0xFFFFFFFF);
SF->getRender()->DrawLine(posX[2], posY[2], posX[5], posY[5], 2, 0xFFFFFFFF);
SF->getRender()->DrawLine(posX[2], posY[2], posX[8], posY[8], 2, 0xFFFFFFFF);
SF->getRender()->DrawLine(posX[2], posY[2], posX[3], posY[3], 2, 0xFFFFFFFF);
SF->getRender()->DrawLine(posX[3], posY[3], posX[4], posY[4], 2, 0xFFFFFFFF);
SF->getRender()->DrawLine(posX[5], posY[5], posX[6], posY[6], 2, 0xFFFFFFFF);
SF->getRender()->DrawLine(posX[6], posY[6], posX[7], posY[7], 2, 0xFFFFFFFF);
SF->getRender()->DrawLine(posX[8], posY[8], posX[9], posY[9], 2, 0xFFFFFFFF);
SF->getRender()->DrawLine(posX[9], posY[9], posX[10], posY[10], 2, 0xFFFFFFFF);
SF->getRender()->EndRender();
};
return true;
};