Jump to content

O valor do isCursorOnElement está dando nil


Recommended Posts

estou fazendo um script de trabalho mas o valor desta função esta dando nil, fiquei horas revisando o script e n achei o erro.

function fecharpainel (_,state)
    if painel == true then
	if state == "down" then
       if ( isCursorOnElement (947, 191, 22, 24)) then
           removeEventHandler("onClientRender", root, paineldx)
           showCursor (false)
           painel = false
			end
		end
	end
end
addEventHandler ("onClientClick", root, fecharpainel)

no debug está aparecendo isso " attempt to call global 'isCursoOnElement' (a nil value)

se alguém poder me ajudar agradeço.

Link to comment
  • IIYAMA locked and unlocked this topic

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