How to get actual schedules of npcs?

NPC:GetCurrentSchedule prints out numbers which is not helpful since they are not permanent(schedules).

It doesnt give out any names which would be the permanent schedule indicator if that makes any sense, which npcs like the city scanner need since their schedules doesnt show up when you type their actual schedule names(like when the scanner photographs you, the schedule should be SCHED_CSCANNER_PHOTOGRAPH but GetCurrentSchedule() prints out as a number)

any solutions?