A3kri Posted August 1, 2013 Share Posted August 1, 2013 Hello .. I made a marker and with setElemeentPosition I want the player to transfer to the ammu shop ID 6: Ammu-Nation 3 297.4460 -109.9680 1001.5160 when I set the coordinates in the setElementPosition it transfer me to another place not the ammu place Link to comment
A3kri Posted August 1, 2013 Author Share Posted August 1, 2013 Post your script. local Marker = createMarker ( 2244.4313964844, -1665.2449951172, 15.4765625, "arrow", 1.5, 255, 255, 0, 255 ) addEventHandler("onClientMarkerHit",Marker, function() setElementPosition ( getLocalPlayer(), 297.4460, -109.680, 1001.5160 ) end) this is it. Link to comment
Castillo Posted August 1, 2013 Share Posted August 1, 2013 local Marker = createMarker ( 2244.4313964844, -1665.2449951172, 15.4765625, "arrow", 1.5, 255, 255, 0, 255 ) addEventHandler ( "onClientMarkerHit", Marker, function ( hitElement ) if ( hitElement == localPlayer ) then setElementInterior ( hitElement, 6, 297.4460, -109.680, 1001.5160 ) end end ) Link to comment
A3kri Posted August 1, 2013 Author Share Posted August 1, 2013 local Marker = createMarker ( 2244.4313964844, -1665.2449951172, 15.4765625, "arrow", 1.5, 255, 255, 0, 255 ) addEventHandler ( "onClientMarkerHit", Marker, function ( hitElement ) if ( hitElement == localPlayer ) then setElementInterior ( hitElement, 6, 297.4460, -109.680, 1001.5160 ) end end ) thanks, my problem was in the "6" x.x Link to comment
Castillo Posted August 1, 2013 Share Posted August 1, 2013 And the function you was using aswell. 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