driver2 Posted February 28, 2010 Share Posted February 28, 2010 Hi, say there's a file saved in a clienside resource directory called '8902342348092349908.xml'. Is there any way to read that from a clientside resource without knowing it's name? Like list all files in the directory? I want to save a file that can only be read by the server who has written it. Greetings Link to comment
50p Posted February 28, 2010 Share Posted February 28, 2010 I made a patch for MTA which adds function "getResourceFiles" which returns table of all client-side files (s) but because they moved to Git, I can't commit anything I add or fix... It's also useful for resources like speedometer where server owner would like to add their own gauge without modifying script but just adding new to meta.xml. Same for MP3 players, server owner could add new and script would know about this. You can't access file without knowing its name. Link to comment
driver2 Posted February 28, 2010 Author Share Posted February 28, 2010 What about if it's not in the meta.xml? Note that I would NOT like to have that function, so other servers CAN'T read the file. The server who has written it obviously knows the filename. 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