Hello!
I have problem with dx,
local x,y = guiGetScreenSize()
function test()
local xMysz,yMysz,cos1,cos2,cos3 = getCursorPosition()
realneX,realneY = fullx*xMysz,fully*xMysz
kameraHusta = dxDrawRectangle(x*0,y*0,x*1,y*0.20,tocolor(0,0,0,255))
if realneX > 0 and realneX < 0 + 1280 and realneY > 0 and realneY < 0 + 144 then
outputChatBox("test")
end
end
addEventHandler("onClientRender",root,test)
It works, but it doesn't suit all resolutions, I know why (if realneX > 0 and realneX < 0 + 1280 and realneY > 0 and realneY < 0 + 144 then) , but I don't know how can fix it.