Mark Gamer Posted June 5, 2017 Posted June 5, 2017 if there any function if the mouse or cursor on a element like ped or player ?
Mark Gamer Posted June 5, 2017 Author Posted June 5, 2017 9 minutes ago, Hale said: Use getCursorPosition and processLineOfSight ex
Moderators IIYAMA Posted June 6, 2017 Moderators Posted June 6, 2017 There is also another method, which works with the crosshair: https://wiki.multitheftauto.com/wiki/OnPlayerTarget https://wiki.multitheftauto.com/wiki/OnClientPlayerTarget Might be interesting for you as well. You can use it as fallback when you do not get it working with the cursor. Good luck!
Hale Posted June 6, 2017 Posted June 6, 2017 13 hours ago, Mark Gamer said: ex There are examples in the links provided. Maybe isCursorOnElement can be of help as well.
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