Fix settings not being properly exposed to Lua

This commit is contained in:
Evil Factory
2026-04-08 19:44:16 -03:00
parent 2e656509a8
commit e161d92117
2 changed files with 50 additions and 10 deletions
@@ -22,4 +22,18 @@ end)
Hook.Add("missionsEnded", "test", function()
print("missionsEnded")
end)
end)
local failed, package = trygetpackage("[DebugOnlyTest]TestLuaMod")
local success, config = ConfigService.TryGetConfig(SettingBase.Single, package, "TestFloat")
print("config ", success, " ", config)
local lastTime = 0
Hook.Add("think", "printconfig", function()
if lastTime > Timer.Time then return end
lastTime = Timer.Time + 10
print(config.Value)
end)