for id = 0, 2048 do
if sampIs3dTextDefined(id) then
local str, color, x, y, z, distance, ignore_walls, player_id, vehicle_id = sampGet3dTextInfoById(id)
if sampIsPlayerConnected(player_id) then
print(("Текст \"%s\" прикреплен к %s[%s]"):format(str, sampGetPlayerNickname(player_id), player_id))
end
end
end