- 464
- 130
- Версия MoonLoader
- .026-beta
Апд 09.06.2022
Не могу запросить модель скинов Персонажей, например cj, truth, cesar, big bear, ogloc, woozie
Не могу запросить модель скинов Персонажей, например cj, truth, cesar, big bear, ogloc, woozie
Lua:
local imgui = require 'imgui'
local main_window_state = imgui.ImBool(false)
local key = require 'vkeys'
local encoding = require 'encoding'
encoding.default = 'CP1251'
u8 = encoding.UTF8
local skin_id = imgui.ImBuffer(256)
function main()
while true do wait(0)
if wasKeyPressed(key.VK_Z) then
main_window_state.v = not main_window_state.v
end
imgui.Process = main_window_state.v
end
end
function imgui.OnDrawFrame()
if main_window_state.v then
showCursor(true, true)
imgui.SetNextWindowSize(imgui.ImVec2(500, 200), imgui.Cond.FirstUseEver)
imgui.SetNextWindowPos( imgui.ImVec2(400, 200), imgui.Cond.FirstUseEver)
imgui.Begin(u8'Окно', main_window_state)
imgui.InputText(u8'Введите ID скина', skin_id)
if imgui.Button(u8'Применить') then
requestModel(skin_id.v)
loadAllModelsNow()
if hasModelLoaded(skin_id.v) and isModelAvailable(skin_id.v) and tonumber(skin_id.v) >= 5 and tonumber(skin_id.v) <= 311 then
setPlayerModel(PLAYER_HANDLE, skin_id.v)
end
end
imgui.End()
end
end
Код:
opcode '09C7' call caused an unhandled exception
Последнее редактирование: