kuwalda Posted June 18, 2014 Share Posted June 18, 2014 I have a small part of my code here: setElementData(thePlayer, "checkpoints", createMarker(_G[""..getElementData( thePlayer, "raceParticipate" )..""][ciga][1], _G[""..getElementData( thePlayer, "raceParticipate" )..""][ciga][2], _G[""..getElementData( thePlayer, "raceParticipate" )..""][ciga][3], "checkpoint", 6, 190, 156, 252, 250)) --works setElementData(thePlayer, "blips", createBlip( _G[""..getElementData( thePlayer, "raceParticipate" )..""][ciga][1], _G[""..getElementData( thePlayer, "raceParticipate" )..""][ciga][2], _G[""..getElementData( thePlayer, "raceParticipate" )..""][ciga][3], 0, 3, 190, 156, 252, thePlayer)) --works setMarkerIcon(getElementData(thePlayer, "checkpoints"), "finish") -- do not work setElementVisibleTo(getElementData(thePlayer, "checkpoints"), root, false) --works setElementVisibleTo(getElementData(thePlayer, "blips"), root, false) --works setElementVisibleTo(getElementData(thePlayer, "checkpoints"), thePlayer, true) --works setElementVisibleTo(getElementData(thePlayer, "blips"), thePlayer, true) --works setElementDimension( getElementData(thePlayer, "checkpoints"), 1 ) --works setElementDimension( getElementData(thePlayer, "blips"), 1 ) --works Why setMarkerIcon line does not work for me? Link to comment
Max+ Posted June 18, 2014 Share Posted June 18, 2014 Required Arguments theMarker: The marker to change the visual style of icon: A string referring to the type of icon, acceptable values are: "none": No icon "arrow": Arrow icon "finish": Finish icon (at end of race) , Link to comment
kuwalda Posted June 18, 2014 Author Share Posted June 18, 2014 And what I am missing in here: setMarkerIcon(getElementData(thePlayer, "checkpoints"), "finish") 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