Hi!
I want to learn using dxDraws properly, but i don't know where can i check screen coordinates, and i want to draw a straight line, and place a box in the center, and i'm trying my best and it is like this:
Coding:
local x,y = guiGetScreenSize()
function drawStuff()
local bg = dxDrawRectangle ( 500, 250, 500, 500, tocolor ( 0, 0, 0, 155 ) )
local line1 = dxDrawLine ( 600, 500, 300, 250, tocolor(0,0,0,255))
end
addEventHandler("onClientRender", root, drawStuff)
addCommandHandler ("asdasd", drawStuff)
Can you help me? Please?