Oh, right, forgot getCursorPosition returns a relative vector instead. This should do it:
local screenWidth, screenHeight = guiGetScreenSize( )
function drawCursor( )
if ( isCursorShowing( ) ) then
local cursorX, cursorY = getCursorPosition( )
dxDrawImage( cursorX * screenWidth, cursorY * screenHeight, 41, 41, 'images/cursor.png' )
end
end
addEventHandler( "onClientRender", root, drawCursor )
showCursor( true )
setCursorAlpha( 0 )