radio

7 СМЕРТНЫХ ГРЕХОВ

Известный
Автор темы
524
163
Версия MoonLoader
.026-beta
help me pls 👉👈
1675718933067.png


LUA:
new = imgui.new
m = {
    player = {
        radio = new.int(1),
}

function sampev.onSendPlayerSync(data)
    if m.player.Invis[0] then
        if m.player.radio[0] == 1 then
            data.position.z = getGroundZFor3dCoord(getCharCoordinates(PLAYER_PED)) - 2.5
        elseif m.player.radio[0] == 2 then
            data.position.z = getGroundZFor3dCoord(getCharCoordinates(PLAYER_PED)) + 50.0
        end
    end
end

-- MIMGUI --
if imgui.ToggleButton('Invisible', m.player.Invis) then end
imgui.SameLine()
imgui.Text(ti.ICON_SETTINGS)
if imgui.IsItemClicked() then
    imgui.OpenPopup('Settings Invise')
end
if imgui.BeginPopup('Settings Invise') then
    imgui.RadioButtonIntPtr('Underground', m.player.radio, 1)
    imgui.RadioButtonIntPtr('In the sky', m.player.radio, 2)
imgui.EndPopup()
end