Jump to content

x[ إستفسار ]x صوره ماوس


Recommended Posts

ايه تقدر, استبدل الصورة باللي عندك

local mouseX = 0
local mouseY = 0

addEventHandler("onClientRender", root,
	function ( )
		if ( isCursorShowing ( ) ) then
			if not ( isMainMenuActive ( ) ) then
				if not myImage then
					myImage = dxCreateTexture( ":images/dx.png" )
				end
				setCursorAlpha ( 0 )
				dxDrawImage ( mouseX, mouseY, 14, 21, myImage, 0, 0, 0, tocolor(255, 255, 255, 255), true ) 
			else
				setCursorAlpha ( 255 )
			end
		end
	end
)

addEventHandler( "onClientCursorMove", root,
    function ( _, _, x, y )
		mouseY = y
		mouseX = x
    end
)

addEventHandler( "onClientResourceStop", resourceRoot,
    function ( )
		setCursorAlpha ( 255 )
    end
)

 

Link to comment
9 minutes ago, N3xT said:

ايه تقدر, استبدل الصورة باللي عندك


local mouseX = 0
local mouseY = 0

addEventHandler("onClientRender", root,
	function ( )
		if ( isCursorShowing ( ) ) then
			if not ( isMainMenuActive ( ) ) then
				if not myImage then
					myImage = dxCreateTexture( ":images/dx.png" )
				end
				setCursorAlpha ( 0 )
				dxDrawImage ( mouseX, mouseY, 14, 21, myImage, 0, 0, 0, tocolor(255, 255, 255, 255), true ) 
			else
				setCursorAlpha ( 255 )
			end
		end
	end
)

addEventHandler( "onClientCursorMove", root,
    function ( _, _, x, y )
		mouseY = y
		mouseX = x
    end
)

addEventHandler( "onClientResourceStop", resourceRoot,
    function ( )
		setCursorAlpha ( 255 )
    end
)

 

تسلم حبيبي ?

 

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...