function createAndroMarker(thePlayer)
vehicle = getPedOccupiedVehicle(thePlayer)
x,y,z = getElementPosition( vehicle )
theMarker = createMarker ( x, y + 5, z, "cylinder", 20.5, 0, 0, 255, 170 )
setTimer ( removeMarker, 7000, 1 )
addEventHandler( "onMarkerHit", theMarker, warpPlayerIntoAndro )
end
addCommandHandler("marker", createAndroMarker)
function warpPlayerIntoAndro(hitElement, dimensionMatch)
outputDebugString("Warp function triggered")
if getElementType(hitElement) ~= "player" then return end
if isPedInVehicle(hitElement) then removePedFromVehicle(hitElement) end
setElementInterior(hitElement, 9, 315.48, 984.13, 1959.11 )
end
function removeMarker()
destroyElement ( theMarker )
end
Try that.