Mark Gamer Posted June 5, 2017 Share Posted June 5, 2017 if there any function if the mouse or cursor on a element like ped or player ? Link to comment
Hale Posted June 5, 2017 Share Posted June 5, 2017 Use getCursorPosition and processLineOfSight 1 Link to comment
Mark Gamer Posted June 5, 2017 Author Share Posted June 5, 2017 9 minutes ago, Hale said: Use getCursorPosition and processLineOfSight ex Link to comment
Moderators IIYAMA Posted June 6, 2017 Moderators Share 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! Link to comment
Hale Posted June 6, 2017 Share 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. 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