"attempt to compare number whit nil" in this line "if pointx>boundx then"
local selectedTab
function checkForCursorInImage()
local pointx, pointy = getCursorPosition()
local screenx, screeny = guiGetScreenSize()
local pointx = screenx * pointx
local pointy = screeny * pointy
local imgX, imgY, imgW, imgH = x + barX + 35, 13 + textMove - 10, 100, 75
if isCursorShowing() then
if isPointInBounds(mouseX, mouseY, imgX, imgY, imgW, imgH) then
selectedTab = "stats"
checkForTabs()
end
end
end
addEventHandler("onClientCursorMove", root, checkForCursorInImage)