Test Lua config mod
This commit is contained in:
@@ -36,4 +36,8 @@ Hook.Add("think", "printconfig", function()
|
||||
|
||||
lastTime = Timer.Time + 10
|
||||
print(config.Value)
|
||||
|
||||
if SERVER then
|
||||
config.TrySetValue(config.Value + 1)
|
||||
end
|
||||
end)
|
||||
|
||||
@@ -0,0 +1,4 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Items>
|
||||
|
||||
</Items>
|
||||
@@ -1,4 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<contentpackage name="[DebugOnlyTest]TestLuaMod" >
|
||||
<Text file="%ModDir%/Texts/English.xml"/>
|
||||
<Item file="%ModDir%/dummy.xml" />
|
||||
</contentpackage>
|
||||
|
||||
Reference in New Issue
Block a user