iiv03 Posted May 19, 2019 Share Posted May 19, 2019 هل يمدني اغير شكل الماوس حق لعبه؟ لو يمدي وش فانكشن احتاجه؟ Link to comment
N3xT Posted May 19, 2019 Share Posted May 19, 2019 ايه تقدر, استبدل الصورة باللي عندك 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
iiv03 Posted May 19, 2019 Author Share Posted May 19, 2019 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
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now