#pragma pack(push, 1) struct SScriptRectangle { char bActive; char gap_1[1]; short textureID; float pos1x; float pos1y; float pos2x; float pos2y; int color; }; #pragma pack(pop) SScriptRectangle* g_pRectangles = (SScriptRectangle*)0x00813DF0; bool DrawScriptRectangle(float posX, float posY, float w, float h, int color){ for(int i = 0; i < 16; i++){ if(!g_pRectangles[i]->bActive){ g_pRectangles[i]->bActive = 1; g_pRectangles[i]->textureID = -1; g_pRectangles[i]->pos1x = posX; g_pRectangles[i]->pos1y = posY; g_pRectangles[i]->pos2x = posX + w; g_pRectangles[i]->pos2y = posY + h; g_pRectangles[i]->color = color; return true; } } return false; }