local sampev = require('samp.events')
require('addon')
local Coordinate = {
{1069.2907714844, 1771.1702880859, 13.353523254395},
{1060.1303710938, -1720.0169677734, 13.546875},
}
function getRandomCoordinate()
math.randomseed(os.clock())
local index = math.random(1, #Coordinate)
local x, y, z = Coordinate[index][1], Coordinate[index][2], Coordinate[index][3]
setBotPosition(x, y, z)
print('teleport to: ' .. math.floor(x) .. ' | ' .. math.floor(y) .. ' | ' .. math.floor(z))
end
function sampev.onSetInterior(interior)
if interior == 0 then
newTask(function()
wait(1750)
getRandomCoordinate()
end)
end
end