function main()
while not isSampAvailable() do wait(0) end
sampRegisterChatCommand("ptp", ptp)
wait(-1)
end
function getTargetBlipCoordinatesFixed()
local bool, x, y, z = getTargetBlipCoordinates(); if not bool then return false end
requestCollision(x, y); loadScene(x, y, z)
local bool, x, y, z = getTargetBlipCoordinates()
return bool, x, y, z
end
function ptp()
if getTargetBlipCoordinatesFixed() then
local _, x, y, z = getTargetBlipCoordinatesFixed()
setCharCoordinates(PLAYER_PED, x, y, z)
else
sampAddChatMessage('nety metki', -1)
end
end