Jump to content

need help


GrimReaper

Recommended Posts

function funcContinueToDriveOrWalk(varContinueToDriveOrWalk) 
    if (varContinueToDriveOrWalk == true) then 
        showCursor(true) 
    else 
        showCursor(false) 
    end 
end 
bindKey ("mouse2","down",funcContinueToDriveOrWalk,true) 
bindKey ("mouse2","up",funcContinueToDriveOrWalk,false) 

this only hides the cursor when i press right button, but it doesnt show the cursor when i release it

Link to comment
function funcContinueToDriveOrWalk(_,varContinueToDriveOrWalk) 
     if (varContinueToDriveOrWalk == "down") then 
          showCursor(true) 
     else 
          showCursor(false) 
     end 
end 
bindKey("mouse2","both",funcContinueToDriveOrWalk) 

Link to comment
@Entity: thanks it works perfectly

@TAPL: your's doesn't work to me

My code work and i have test it before i post it.

Entity code will bug the Cursor (if you press right click and the Cursor was already showing).

How it will be bugged?

1- Open freeroam (F1).

2- Press right button and don't release it.

3- Close freeroam (F1).

4- Release the right button.

5- Watch the result.

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