Jump to content

Cursor question


12p

Recommended Posts

Posted

Well, I have a HUGE code, so I won't show it because it could give anyone a headache (hehehe).

The only question is have, is, why could cursor be forced to be shown?

For some reason, when I use showCursor (false) on Client, it doesn't do anything.

Btw, already used guiSetInputEnabled(false) and set all GUIs invisible.

Posted

Another resource is showing the cursor? Check if cursor is shown (isCursorShowing()) after showCursor( false );

Posted

Well, I'm running 2 resources at the time.

In both I have made a function so the cursor shouldn't be shown when the player spawns.

I will try isCursorShowing.

Thx, worked.

Posted
  
local sCnumber = 0 
local _showCursor = showCursor 
  
function showCursor(bool) 
    if bool == true then 
        sCnumber = sCnumber + 1 
        _showCursor(true) 
    elseif bool == false then 
        sCnumber = sCnumber - 1 
        if sCnumber == 0 then 
            _showCursor(false) 
        end 
    end 
end 
  

If you use multi-gui, open and close will not close mouse

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...