• getting folder name of current addon
    2 replies, posted
Hello, I wanted to know, if its possible to use like "file.find()" to get the foldername of the current addon, like I want to code a "module loader", like in ULX, but the only known way, is setting the path manually, and therefore I need to know the foldername, which cant be 100% right since, if I like upload it, others could change it blah blah, afaik file.find() using "../../" etc doesnt work?
[img]http://wiki.garrysmod.com/favicon.ico[/img] [url=http://wiki.garrysmod.com/page/debug/getinfo]debug.getinfo[/url]
[QUOTE=StonedPenguin;48287712][img]http://wiki.garrysmod.com/favicon.ico[/img] [url=http://wiki.garrysmod.com/page/debug/getinfo]debug.getinfo[/url][/QUOTE] does "nups" mean like "../"? [editline]25th July 2015[/editline] Ah you mean like [CODE] print(debug.getinfo(customfunctionfromaddonhere, "S").short_src) [/CODE] And using that with string.explode would make the addonincluder, thanks!
Sorry, you need to Log In to post a reply to this thread.