Skip to main content

ui.new_color_picker

Throws an error on failure. The color picker is placed to the right of the previous menu item.

ui.new_color_picker(tab: string, container: string, name: string, r: number, g: number, b: number, a: number): number

Arguments

NameDescriptionType
tabThe name of the tab: RAGE, AA, LEGIT, VISUALS, MISC, SKINS, PLAYERS, LUA.string
containerThe name of the existing container to which this checkbox will be added.string
nameThe name of the color picker. This will not be shown, it is only used to identify this item in saved configs.string
rInitial red value (0-255)number
gInitial green value (0-255)number
bInitial blue value (0-255)number
aInitial alpha value (0-255)number

Returns menu item: number