so i’ve been trying to use this function with no results, i’m sure i used it in the past, when i last got into lua, however it seems to be just erroring now
has it been depreciated or something?
i’ve tried the sample script on the wiki page of resource.addfile along with some obvious tests, such as something like
just from putting “lua_run file.FindDir(”/*") i get the error “[ERROR] lua_run:1: attempt to call field ‘FindDir’ (a nil value)” and similar errors in places such as init.lua for gamemodes
i also tried looking through the change notes for the file library for gmod13, it said some functions had changed but couldnt find anything on finddir
also wanted to search the forums for anyone else asking this question, but i guess search is disabled
anyway i can live without the function, it’s just that i’ll be adding alot of custom materials/models and would save time if i could automate resource adding
any help is appreciated