Skip to content
/ RageIB Public
forked from ImBaphomettt/RageIB

Rage Instructional Button. is a standalone Instructional Button for FiveM.

License

Notifications You must be signed in to change notification settings

Korioz/RageIB

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

RageIB

Rage Instructional Button is a standalone Instructional Button API for FiveM.

Lua Example

Citizen.CreateThread(function()
    local object = UIInstructionalButton.New()
    object:Refresh() -- call this even after the creation of the object
    object:Visible(true) -- set the object visibility

    RegisterCommand("background", function()
        object:UpdateBackground(255, 100, 0, 80) -- upgrade the background based on r, g, b, a parameters you will pass
        object:Refresh() -- refresh the game part if you changed some data
    end)

    RegisterCommand("example", function()
        for i = 1, 300, 1 do
            object:Add(tostring(i), i) -- add a button to the object based on name and control id
        end

        object:Refresh()
    end)

    while true do
        object:Draw() -- draw the ui you need this or it will not show anything
        Citizen.Wait(0)
    end
end)

unknown

About

Rage Instructional Button. is a standalone Instructional Button for FiveM.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Lua 100.0%