MAB Posted August 18, 2015 Share Posted August 18, 2015 how to make a arrow marker keep going up and down like GTA with example please.. Link to comment
stefutz101 Posted August 18, 2015 Share Posted August 18, 2015 https://wiki.multitheftauto.com/wiki/CreateMarker use this Link to comment
MAB Posted August 18, 2015 Author Share Posted August 18, 2015 i said i want to make the marker going up and down not i want to create marker... Link to comment
Mr.Loki Posted August 18, 2015 Share Posted August 18, 2015 do you mean somthing like this? mrker = createMarker( 2.2910349369049, 10.279877662659, 3.1096496582031 ,"cylinder") dir = .1 setTimer( function() if dir == -.1 then dir = .1 elseif dir == .1 then dir = -.1 end end,1000,0 ) addEventHandler("onClientRender", root, function() local x, y, z = getElementPosition( mrker ) setElementPosition( mrker, x, y, z+dir ) end ) Link to comment
MAB Posted August 18, 2015 Author Share Posted August 18, 2015 do you mean somthing like this? mrker = createMarker( 2.2910349369049, 10.279877662659, 3.1096496582031 ,"cylinder") dir = .1 setTimer( function() if dir == -.1 then dir = .1 elseif dir == .1 then dir = -.1 end end,1000,0 ) addEventHandler("onClientRender", root, function() local x, y, z = getElementPosition( mrker ) setElementPosition( mrker, x, y, z+dir ) end ) it is what i need... thanks alot 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