Hi, I am trouble getting this simple Lua script to work. Here's some screenshots of the directory it's in:


Here's what's in the plugin:
ts3init.lua
msgfunc.lua
Teamspeak client settings:

Now, for the error. When I try to run /lua run chanmsg.hello I get Error running Lua function: Module 'chanmsg' not found.
Any suggestions?
Here's what's in the plugin:
ts3init.lua
Code:
require("ts3init") -- Required for ts3RegisterModule
require("chanmsg/msgfunc) -- Function file
-- Register the callback function
ts3RegisterModule("chanMsg", registeredEvents)
Code:
require("ts3defs")
require("ts3errors")
function hello()
local message = "!pause"
ts3.printMessageToCurrentTab(message) -- There is another function, but this is a simple example ;)
end
chanmsg = {
hello = hello
}
Now, for the error. When I try to run /lua run chanmsg.hello I get Error running Lua function: Module 'chanmsg' not found.
Any suggestions?
0 commentaires:
Enregistrer un commentaire