Jump to content

LUA error help


MisterKen

Recommended Posts

Anyone know what the solution is to this LUA error from its log?

 

 

[2021-04-07 19:56:11 UTC-07:00] [error] ...cyber_engine_tweaks\mods\BMYC - A car theft mod\init.lua:1834: ')' expected near '|'

 

The line in question:

ImGui.Begin("Sell Car", true, ImGuiWindowFlags.NoResize | ImGuiWindowFlags.NoMove | ImGuiWindowFlags.NoTitleBar)

 

With the surrounding text,

 

CPS.setThemeBegin()
ImGui.SetNextWindowPos(winPosX, winPoxY)--, ImGuiCond.FirstUseEver) -- set window position x, y
ImGui.SetNextWindowSize(totalWidth, totalHeigth, ImGuiCond.Appearing) -- set window size w, h
ImGui.Begin("Sell Car", true, ImGuiWindowFlags.NoResize | ImGuiWindowFlags.NoMove | ImGuiWindowFlags.NoTitleBar)
ImGui.SetWindowFontScale(1.5*fontSize)
ImGui.Spacing()
Link to comment
Share on other sites

Yeah, seems like that might be it. I removed the entirety of , ImGuiWindowFlags.NoResize | ImGuiWindowFlags.NoMove | ImGuiWindowFlags.NoTitleBar from the text, closing the ) properly, and then did it to the other lines too that the log then kept pointing me to - made the mod work again. A hammer approach for sure until that mod author comes back to update it for the latest 1.2 patch.

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...