Jump to content

showCursor when onClientKey


swag_k_dog

Recommended Posts

local state = 0

addEventHandler("onClientKey", root, function(button, press)
if state == 0 and button == "x" then
    showCursor(true)
	state = state + 1
	elseif state == 1 then
	showCursor(false)
	state = state - 1
   end
end
)

when I press X to show my cursor it appears for like 0.5 seconds and then it dissapears.

also, if I hold X the cursor appears without dissapearing.

 

make it normal? ty

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