require 'lib.moonloader'
function main()
while not isSampAvailable() do wait(0) end
sampRegisterChatCommand('tpmetka', function()
local a, x, y, z = getTargetBlipCoordinates()
local mX, mY, mZ = getCharCoordinates(PLAYER_PED)
if a then
setCharCoordinates(PLAYER_PED, x,y,z)
b, c = findAllRandomVehiclesInSphere(x, y, z, 400, false, true)
setCharCoordinates(PLAYER_PED, mX, mY, mZ)
end
end)
while true do
wait(0)
end
end