LUA скрипт First person on grenade

Забаненный
Статус
Оффлайн
Регистрация
5 Дек 2023
Сообщения
5
Реакции[?]
2
Поинты[?]
2K
Обратите внимание, пользователь заблокирован на форуме. Не рекомендуется проводить сделки.
First person on grenade:
local function contains(table, element)
    for _, value in pairs(table) do
        if value == element then
            return true
        end
    end

    return false
end

local third_person_ref = ui.reference("visuals", "effects", "force third person (alive)")

client.set_event_callback("paint", function()
    local local_ent = entity.get_local_player()
    if not local_ent then
        return
    end

    local current_weapon = entity.get_player_weapon(local_ent)
    if not current_weapon then
        return
    end

    
    if contains({ 43, 44, 45, 46, 47, 48 }, entity.get_prop(current_weapon, "m_iItemDefinitionIndex")) then
        ui.set(third_person_ref, false)
    else
        ui.set(third_person_ref, true)
    end
end)
 
Пользователь
Статус
Оффлайн
Регистрация
18 Янв 2021
Сообщения
238
Реакции[?]
56
Поинты[?]
18K
вот ебанутые ля... просто нажать кнопку лень, так еще и неудобно от 1 лица кидать. Тем более 70 процентов клопов с хелперами
 
Сверху Снизу