function main()
if not isSampfuncsLoaded() or not isSampLoaded() then return end
while not isSampAvailable() do wait(100) end
-->> Бесконечный цикл
while true do wait(0)
for k, v in ipairs(getAllChars()) do
local coordinates = {getCharCoordinates(v)}
local getID = {sampGetPlayerIdByCharHandle(v)}
-->> X: coordinates[1]
-->> Y: coordinates[2]
-->> Z: coordinates[3]
-->> getID[1] - проверка на получение ID
-->> getID[2] - выводит ID
end
end
end