Hello
Is there another way to move this instead of adjusting the x and y position?
local square = {
{ x = 50, y = 300 },
{ x = 50, y = 200 },
{ x = 200, y = 200 },
{ x = 200, y = 300 }
}
surface.SetDrawColor( 0, 0, 0, 255 )
draw.NoTexture()
surface.DrawPoly( square )
????
surface.DrawRect
Also, if you have a good alternative to numbers, let us know.
Not sure if this is a stupid way to do this, but might be useful if you have a bigger poly, just set the offX and offY to offset every single coordinate
local offX, offY = 0, 0
for index, coord in pairs(square) do
coord.x, coord.y = coord.x + offX, coord.y + offY
end
plz fix code tags
It's not a square. Couldn't change the topic title. I will let you know.
Worked really good! Thank you!
Edit: Do you maybe know how I can apply LocalPlayer():Health() On these bars?
Sorry, you need to Log In to post a reply to this thread.