also um das bunte Bild zu machen müsst ihr diesen krassen code am client ausführen
wie gesagt hab nur rumgespielt
local t = dxCreateTexture(1, 1)
local tex = dxGetTexturePixels(t)
dxSetPixelColor(tex, 0, 0, 255, 255, 255, 255)
local tex2 = dxConvertPixels(tex, "png")
local fileHandle = fileCreate("something.png")
fileWrite(fileHandle, tex2)
fileClose(fileHandle)
destroyElement(t)
local a1, r1, g1, b1, a2, r2, g2, b2, a3, r3, g3, b3, a4, r4, g4, b4 = 255, 0, 0, 128, 0, 255, 0, 255, 0, 0, 255, 200, 150, 0, 150, 80
guiCreateStaticImage(200,200,300,300, "something.png", false)
guiSetProperty(guiCreateStaticImage(600,200,300,300, "something.png", false), "ImageColours", ("tl:%s tr:%s bl:%s br:%s"):format(("%02X%02X%02X%02X"):format(a1, r1, g1, b1), ("%02X%02X%02X%02X"):format(a2, r2, g2, b2), ("%02X%02X%02X%02X"):format(a3, r3, g3, b3), ("%02X%02X%02X%02X"):format(a4, r4, g4, b4)))
Alles anzeigen