Jump to content

isCursorOnElement help me plz


Alex_McWhit

Recommended Posts

addEventHandler( "onClientClick", getRootElement(), function(button, state )
				if ( button == "left" and state == "up" ) then
		if ( isCursorOnElement(288, 424, 211, 61))  then 
		SpawnPlayer()
		end 
	end
end)

this function isCursorOnElement dosen't wrok help me plz 

attempt to call global isCursorOnElement a nil value 

Edited by Alex_McWhit
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...