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