local sampev = require('lib.samp.events')
function CoordMaster(px, py, pz, step, time)
local x, y, z = getCharCoordinates(PLAYER_PED)
local d = getDistanceBetweenCoords3d(px, py, pz, x, y, z)
if d <= step then
setCharCoordinates(PLAYER_PED, px, py, pz)...