Teleport1 = createMarker ( 807.5, 841.70001220703, 8.8000001907349, "corona", 10, 0, 0, 0, 0, getRootElement() )
Teleport2 = createMarker ( 674.73828125, 909.494140625, 791.348449707034, "corona", 10, 0, 255, 255, 255, getRootElement() )
Teleport3 = createMarker ( 720.93139648438, 919.96643066406, 772.42846679688, "corona", 5, 60, 255, 0, 255, getRootElement() )
function MarkerHit ( hitElement )
local vehicle = getPedOccupiedVehicle ( hitElement )
local skin = getElementModel ( hitElement )
if ( skin == 100 ) then
local teleportElement = ( vehicle and vehicle or hitElement )
if ( source == Teleport1 ) then
setElementFrozen ( teleportElement, true )
setElementPosition ( teleportElement, 741.3369140625, 798.7236328125, 772.5 )
setElementRotation ( teleportElement, 0, 0, 0 )
setElementFrozen ( teleportElement, false )
elseif ( source == Teleport2 ) then
setElementFrozen ( teleportElement, true )
setElementPosition ( teleportElement, 631.3056640625, 833.025390625, 39.091259002686 )
setElementRotation ( teleportElement, 0, 0, 0 )
setElementFrozen ( teleportElement, false )
elseif ( source == Teleport3 ) then
setElementFrozen ( teleportElement, true )
setElementPosition ( teleportElement, 822.73046875, 909.7177734375, 13.3515625 )
setElementRotation ( teleportElement, 0, 0, 0 )
setElementFrozen ( teleportElement, false )
end
end
end
addEventHandler ( "onMarkerHit", root, MarkerHit )
Proba eso.