zZerteXx Posted August 12, 2022 Share Posted August 12, 2022 Hi everyone! Is code correct? When I stand on marker, there's nothing happens infoMarker = createMarker(2808.621094,-2430.112305,12.62857, "cylinder", 2.0, 255, 0, 0, 150) function openInfoGui() if isElementWithinMarker(thePlayer, infoMarker) then outputChatBox("You are not at the right place!", thePlayer, 255, 0, 0) end end addEventHandler( "openInfoGui", root, openInfoGui ) Link to comment
Overkillz Posted August 12, 2022 Share Posted August 12, 2022 No, you are not using the right event. Checkout onClientMarkerHit event. The source parameter is the event, so, you just need to compare such element with you variable infoMarker and do whatever you want. Best regards. 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