imgui.ColorPicker3()

shrug228

Активный
Автор темы
212
75
Версия MoonLoader
.026-beta
И так, есть код:
Lua:
local rgb = {255, 255, 0}
local a = imgui.ImColor(rgb[1] / 255, rgb[2] / 255, rgb[3] / 255)
imgui.ColorPicker3(u8'test', a) -- не работает, ошибка:
[ML] (error) govnocode: C:\Games\GTA SAMP\moonloader\govnocode.lua:273: stack index 2, expected userdata, received table: value is not a valid userdata (bad argument into 'bool(const char*, ImArray<float,3>*, sol::optional<int>)')
stack traceback:
    [C]: in function 'ColorPicker3'
    C:\Games\GTA Police\moonloader\gta5-hud.lua:273: in function 'OnDrawFrame'
    C:\Games\GTA Police\moonloader\lib\imgui.lua:1378: in function <C:\Games\GTA Police\moonloader\lib\imgui.lua:1367>
[ML] (error) gta5-hud: Script died due to an error. (01EF565C)
Исходя из кода самого imgui, мне нужно некое float col[3], где взять?)