ice_brasil Posted October 10, 2012 Share Posted October 10, 2012 Hello everyone, First sorry for my bad english I'm Brazilian. I was wondering what is the code for when the player pass over the marker open a painel.I already have the panel just need the code for when someone pass up on this marker panel open that someone could help me? Link to comment
TwiX! Posted October 10, 2012 Share Posted October 10, 2012 function createMarkers() GUIMarker = createMarker(-2032.349609375,-101.84552764893,34.110488891602,"cylinder",1,247,7,7,255); end addEventHandler("onClientResourceStart",getResourceRootElement(getThisResource()),createGUIandMarkers) function markerEnter(element) if element == localPlayer then if not isPedInVehicle(localPlayer) then if source == GUIMarker then guiSetVisible(yourWindow,true); showCursor(true); end end end end addEventHandler("onClientMarkerHit",getRootElement(),markerEnter) Don't forget change "yourWindow" and X,Y,Z of marker 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