- 2,124
- 1,734
- Версия MoonLoader
- .026-beta
Lua:
local result, texture = getTextDrawTexture(2107)
if result then
imgui.Image(texture, imgui.ImVec2(350, 350))
end
Код:
[09:16:50.046112] (system) TEST.lua: Loaded successfully.
[09:16:53.253204] (error) TEST.lua: D:\GTASHKA\moonloader\TEST.lua:220: stack index 1, expected userdata, received cdata: (bad argument into 'void(void*, const structImVec2&, sol::optional<ImVec2 const *>, sol::optional<ImVec2 const *>, sol::optional<ImVec4 const *>, sol::optional<ImVec4 const *>)')
stack traceback:
[C]: in function 'Image'
D:\GTASHKA\moonloader\TEST.lua:220: in function 'OnDrawFrame'
D:\GTASHKA\moonloader\lib\imgui.lua:1378: in function <D:\GTASHKA\moonloader\lib\imgui.lua:1367>
[09:16:53.266716] (error) TEST.lua: Script died due to an error. (0C679494)