xFabel

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

Recommended Posts

:lol:هل يمدني اغير شكل الماوس حق لعبه؟

p_1234mzz4h1.png

:-oلو يمدي وش فانكشن احتاجه؟

Share this post


Link to post

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

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
)

 

Share this post


Link to post
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
)

 

تسلم حبيبي 😘

 

Share this post


Link to post

الله يسلمك, حياك

Share this post


Link to post

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.