A3kri Posted August 1, 2013 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
A3kri Posted August 1, 2013 Author 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.
Castillo Posted August 1, 2013 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 )
A3kri Posted August 1, 2013 Author 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
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