xScatta Posted November 9, 2013 Share Posted November 9, 2013 Hey, all guys im confused because there's no such function like marker = getElementMarker(element) -- or marker = getPlayerMarker(player) Can someone explain how can i get player occupied marker? Big thanks. xScatta Link to comment
.:HyPeX:. Posted November 10, 2013 Share Posted November 10, 2013 you cant get if it is over a marker, you can just know when it hits it. function MarkerHit ( hitPlayer, matchingDimension ) if matchingDimension == true then if hitPlayer then outputChatBox("".. Player .." in now over marker ".. source.. " !", getRootElement()) addEventHandler ( "onClientMarkerHit", getRootElement(), MarkerHit ) end end function markerLeave ( leavingPlayer, matchingDimension ) if matchingDimension == true then if leavingPlayer then outputChatBox("".. leavingPlayer .." just left marker ".. source .." ! ", getRootElement()) end end addEventHandler ( "onClientMarkerLeave", getRootElement(), markerLeave ) If you're sure he is in then you should go ahead with this: https://wiki.multitheftauto.com/wiki/Is ... thinMarker Link to comment
myonlake Posted November 10, 2013 Share Posted November 10, 2013 isElementWithinMarker or getDistanceBetweenPoints3D or getElementParent 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