Alex_McWhit Posted December 25, 2017 Share Posted December 25, 2017 (edited) 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 December 25, 2017 by Alex_McWhit Link to comment
Dimos7 Posted December 25, 2017 Share Posted December 25, 2017 Do you have copy the code in wiki because it a usefuel function? 1 Link to comment
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