Skip to content

Brenalax/rageui-redm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RageUI For RedM

Exemple menu :

local IsOpen = false

function OpenMenu()
    local main = RageUI.CreateMenu("Exemple Menu", "Main")
    main.Closed = function()
        IsOpen = false
    end
    if IsOpen then
        IsOpen = false #optimization
        RageUI.Visible(main, false)
        return
    else
        IsOpen = true
        RageUI.Visible(main, true)
        CreateThread(function()
            while IsOpen do
                main:IsVisible(function(Items)
                    --Items:Heritage(1, 2)
                    Items:AddSeparator("↓ Test ! ↓")
                    Items:AddButton("Button 1", nil, { IsDisable = false }, function(onSelected)
                      if onSelected then
                        --GiveMoney() for exemple
                      end
                    end)
                end, function()
                end)
                Wait(1)
            end
        end)
    end
end

Made by Brenalax with 💖

Credit Brenalax

About

RageUI menu for RedM

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages