Jump to content

Cursor question


12p

Recommended Posts

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.

Link to comment
  
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

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