Jump to content

Help :D


joedajoester

Recommended Posts

I put this together from the wiki, part from it and stuff, i dont get any errors in debug console, i need it to teleport someone when thet walk into the marker.

  
s2 = createBlip( -2519, -623, 133, 23) 
dutymarker = createMarker(-2519, -623, 131, 'cylinder', 2.0, 255, 0, 0, 150) 
function duty(thePlayer, matchingDimension) 
 if isElementWithinMarker(thePlayer, dutymarker) then 
 setElementPosition ( thePlayer, -1980.78, 660.05, 46.56 ) 
 end 
end 

Link to comment
s2 = createBlip( -2519, -623, 133, 23) 
dutymarker = createMarker(-2519, -623, 131, 'cylinder', 2.0, 255, 0, 0, 150) 
  
function duty(thePlayer, matchingDimension) 
     setElementPosition ( thePlayer, -1980.78, 660.05, 46.56 ) 
end 
addEventHandler("onMarkerHit",dutymarker,duty) 

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