Jump to content

How do 2 teleports.


matito6

Recommended Posts

Welcome.

with this script, I can do only one teleport to the map DM or DD. How do I do that you can have piles teleports?

marker = createMarker(-1755, 6658.1000976563, 11.300000190735, "corona", 5, 100, 0, 100, 100) 
  
function teleport(player) 
if getElementType(player)=="player" then 
local vehicle=getPedOccupiedVehicle(player) 
if source == marker then 
setElementPosition(vehicle, -2720.3000488281, 7150.3999023438, 143) 
setElementRotation(vehicle, 0, 0, 0) 
end 
end 
end 
addEventHandler("onClientMarkerHit", getRootElement(), teleport)  
  

Link to comment
  • 4 weeks later...
Welcome.

with this script, I can do only one teleport to the map DM or DD. How do I do that you can have piles teleports?

marker = createMarker(-1755, 6658.1000976563, 11.300000190735, "corona", 5, 100, 0, 100, 100) 
  
function teleport(player) 
if getElementType(player)=="player" then 
local vehicle=getPedOccupiedVehicle(player) 
if source == marker then 
setElementPosition(vehicle, -2720.3000488281, 7150.3999023438, 143) 
setElementRotation(vehicle, 0, 0, 0) 
end 
end 
end 
addEventHandler("onClientMarkerHit", getRootElement(), teleport)  
  

This is bumping, but by piles do you mean a multiple choice of which map to go to?

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