g_Me = getLocalPlayer()
addCommandHandler ( "teleport",
function (cmd, x, y, z, r)
local px, py, pz = getElementPosition(g_Me)
local pr = getPedRotation(g_Me)
if not x or x == '-' or not tonumber(x) then
x = px
end
if not y or y == '-' or not tonumber(y) then
y = py
end
if not z or z == '-' or not tonumber(z) then
z = pz
end
setPlayerPosition(tonumber(x), tonumber(y), tonumber(z))
end
Fr_client.lua