Hero192 Posted July 20, 2015 Share Posted July 20, 2015 I want when i hit the markers the Windows shows it doesn't works! the markers shows but when i hit the marker the gui still invisible local markers = { {1642.79126, -2238.50684, 12.4969}; {1674.19836, 1448.01843, 9.7}; {-1421.77917, -287.76422, 13.14844}; {1633.95, 1831.68, 9.82}; } local Marker = {} for i=1, #markers do Marker[i] = createMarker(markers[i][1], markers[i][2], markers[i][3],"cylinder",1.3,190,180,30,170) end function MarkerHit(hitPlayer,matchingDimension) guiSetVisible (window,true) showCursor (true) end addEventHandler ("onClientMarkerHit",Marker,MarkerHit) Link to comment
Walid Posted July 20, 2015 Share Posted July 20, 2015 Anyone? local markers = { [1] = {1642.79126, -2238.50684, 12.4969}, [2] = {1674.19836, 1448.01843, 9.7}, [3] = {-1421.77917, -287.76422, 13.14844}, [4] = {1633.95, 1831.68, 9.82}, } for i=1, #markers do local x , y , z = markers[i][1], markers[i][2], markers[i][3] local Marker = createMarker(x , y , z,"cylinder",1.3,190,180,30,170) addEventHandler ("onClientMarkerHit",Marker,MarkerHit) end function MarkerHit(hitPlayer,matchingDimension) guiSetVisible (window,true) showCursor (true) end 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