• Couldn't find 'myLuaDir/myLuaFile.lua' any way
    4 replies, posted
Tree: myAddonName -lua --autorun ---init.lua -myAddonName --bind.lua --config.lua --myAddonName.lua --f4menu.lua --languages.lua -addon.txt In autorun/init.lua i used AddCSLuaFile and included file with path "myAddonName/languages.lua", and... it worked! but if I try include other files with same way I get error message that there is no such files... (Anyway, languages.lua still work....) I recreated these files, but it still doesn't work. I don't know what I can more. Thats very strange... Where am I wrong?
If I get the structure that you wrote, you aren't putting your addon inside of the lua folder, it should be as follows Your Addon Name -> Lua -> Autorun -> Auto Run Files -> Your Addon Name -> Addon Files That's what I get from the structure you wrote atleast.
As I know, AddCSLuaFile needs to be run on server or inside every file
You're calling AddCSLuaFile on the client when you need to be calling it on the server.
AddCSLuaFile() must be called from server, include() can from CLIENT or SERVER.
Sorry, you need to Log In to post a reply to this thread.