12p Posted November 29, 2011 Posted November 29, 2011 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.
50p Posted November 29, 2011 Posted November 29, 2011 Another resource is showing the cursor? Check if cursor is shown (isCursorShowing()) after showCursor( false );
12p Posted November 29, 2011 Author Posted November 29, 2011 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.
Cadu12 Posted November 29, 2011 Posted November 29, 2011 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
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