zxmatzx
Advanced OT User
Hello,
I'm working on a mount system, and I need to access the information that is in Mounts.xml several times. Instead of accessing the XML file, I made a global table in LUA and load all the information from the XML file there through a function when the server opens(onStartup). I need when I use /reload mounts, the table is re-created, to update the information if they have changed.
I think this way is faster, i realy don't know...
How do I call a function in LUA, in libs folder made by me, by the reload command of the mounts?
Thanks.
I'm working on a mount system, and I need to access the information that is in Mounts.xml several times. Instead of accessing the XML file, I made a global table in LUA and load all the information from the XML file there through a function when the server opens(onStartup). I need when I use /reload mounts, the table is re-created, to update the information if they have changed.
I think this way is faster, i realy don't know...
How do I call a function in LUA, in libs folder made by me, by the reload command of the mounts?
Thanks.