Jump to content

Read clientside files


driver2

Recommended Posts

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

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...