roaddog Posted March 27, 2015 Share Posted March 27, 2015 Hai, guys. So how can I get files from a directory. It's like checking the directory and return all the file names and its extensions. for example I have a directory called mydir and inside mydir there are 4 files which are 1.lua, 2.lua, 3.map, and 4.xml then I want to randomly know what files in the mydir by using function. Thanks, I hope you understand what Im tryna say. Peace. Link to comment
Gallardo9944 Posted March 27, 2015 Share Posted March 27, 2015 From what I know, only MTA Eir is able to do that. https://wiki.multitheftauto.com/wiki/MT ... /functions Here is the module for older MTA versions: https://wiki.multitheftauto.com/wiki/Modules/FileSystem Never tested it though, so can't be sure if it works properly with 1.4.1 Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now