liwahadri

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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

    No registered users viewing this page.