function isMouseInPosition ( x, y, width, height )
if ( not isCursorShowing( ) ) then
return false
end
local sx, sy = guiGetScreenSize ( )
local cx, cy = getCursorPosition ( )
local cx, cy = ( cx * sx ), ( cy * sy )
if ( cx >= x and cx <= x + width ) and ( cy >= y and cy <= y + height ) then
return true
else
return false
end
end
local size = 1
local sx,sy = guiGetScreenSize()
addEventHandler('onClientRender',root,function()
dxDrawRectangle(sx/2 - size,sx/3 - size,100*size,100*size,tocolor(255,255,255,255))
if isCursorShowing() then
if isMouseInPosition(sx/2 - size,sx/3 - size,100*size,100*size) then
size = 1.5
else
size = 1
end
end
end)