Jump to content

interior help


A3kri

Recommended Posts

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
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
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
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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...