Fix settings not being properly exposed to Lua
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user