Jump to content

Help with Marker


GamerDeMTA

Recommended Posts

My script doesn't work, it shows the marker but when I go to the marker I don't get teleported.

marker = createMarker ( -651.29998779297,954.29998779297,11.10000038147, "cylinder", 2, 0, 255, 0, 225 ) 
  
addEventHandler("onMarkerHit",marker, 
function (player) 
if (getElementType(player) == "player") then 
setElementPosition (player,-699.29998779297,964.09997558594,121.19999694824) 
      end 
end 
) 

Link to comment
marker = createMarker ( -651.29998779297,954.29998779297,11.10000038147, "cylinder", 2, 0, 255, 0, 225 ) 
  
addEventHandler("onMarkerHit",marker, 
function (hitElement) 
if (getElementType(hitElement) == "player") then 
setElementPosition (hitElement,-699.29998779297,964.09997558594,121.19999694824) 
      end 
end 
) 

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