LUA Зона стрима

LeClark

Новичок
Автор темы
11
0
Версия MoonLoader
.026-beta
Здравствуйте, как в LUA можно получить координаты игроков находящихся в зоне стрима?
 

verdis

Участник
49
5
взял тут
Lua:
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
 

LeClark

Новичок
Автор темы
11
0
взял тут
Lua:
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
tysm