Jump to content

Directory reading


madis

Recommended Posts

There's a method for directory listing in Lua with os dir command, which seems to be disabled in MTA.

Is there a way to automatically get filenames in a resource directory (without them being in meta.xml or in any other file)?

No. Although, you can always make a plugin/addon.

Link to comment
I doubt it, what exactly would you need it for?

For my radio3d_playlist, as it would be more comfortable if the playlist.xml doesn't need filling, but filenames are found straight by scanning the directory.

No. Although, you can always make a plugin/addon.

I thought about that, while browsing the amx resource. Can plugins be streamed like any resource, or must be installed manually?

Link to comment
...
No. Although, you can always make a plugin/addon.

I thought about that, while browsing the amx resource. Can plugins be streamed like any resource, or must be installed manually?

What do you mean "streamed like any resource"? Plugin/addon/module must be installed manually just like resources. Put them in "modules" folder and add its name into mtaserver.conf

Link to comment

I meant if they will be downloaded to clients and work client side automatically (like resources do). I assume they do, then (in that case, could the plugin do anything that normal c application could do? This would mean deleting any file on hard drive etc, or do I misinterpret the security methods applied to plugins?).

Thanks for the help, 50p

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...