function main()
while not isSampAvailable() do wait(0) end
sampRegisterChatCommand("cord", function(arg)
if arg then
if arg:find("(%d+)%.(%d+)%.(%d+)") then
x,y,z = arg:match("(%d+)%.(%d+)%.(%d+)")
placeWaypoint(x,y,z)
end
end
end)
while true do
wait(0)
end
end