#Black_Hawk Posted April 25, 2017 Share Posted April 25, 2017 hello guys .. i was wondering how to make the marker clickable ? by using 'onClientClick' or other ways that may be valid i know there is a lot of ways to make it by attaching objets or peds or whatever to the marker but i want to know if there is a way to make it clickable without attaching anything to it ? Link to comment
Mr.Loki Posted April 26, 2017 Share Posted April 26, 2017 getDistanceBetweenPoints3D use this to check if the marker is <, for example, 1m or 0.5m away from where the mouse was clicked in the world. Markers have no collisions so you cannot click them. 1 Link to comment
Fist Posted April 26, 2017 Share Posted April 26, 2017 5 hours ago, Mr.Loki said: getDistanceBetweenPoints3D use this to check if the marker is <, for example, 1m or 0.5m away from where the mouse was clicked in the world. Markers have no collisions so you cannot click them. yeah but you can create ped with 0 alpha for 1 mili second where mouse clicks once you are close enough to marker and then handle all that through onClientColShapeHit. This will make clickable markers possible really easy. Link to comment
Mr.Loki Posted April 26, 2017 Share Posted April 26, 2017 Won't that only work for client sided markers? @Fist Link to comment
Fist Posted April 26, 2017 Share Posted April 26, 2017 (edited) 25 minutes ago, Mr.Loki said: Won't that only work for client sided markers? @Fist well you can do same thing on server side only need to get who made that ped on mouse click. Edited April 26, 2017 by Fist Link to comment
Master_Ali Posted April 27, 2017 Share Posted April 27, 2017 (edited) u can use data to get who created the ped Edited April 27, 2017 by Master_Ali 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