Deeze Posted February 5, 2015 Share Posted February 5, 2015 Example : I'm making a mp3 player script where you can select songs(stored server-side), as soon as you click on a song the mp3 player starts to download it and plays it as soon as its finish downloading. Now let's say all mp3 files are stored in a folder in our mp3 resource. Now, you would have to type in all the mp3 file names in the meta as files, and with about 100+ songs that would be hella work. Now what if i want to access all the mp3 files with a script, but i don't want to put them into the meta, meaning that my script can access them without the mp3 files beeing written in the meta. Is this possible? If yes, how? If no, aww :c Link to comment
RenanPG Posted February 5, 2015 Share Posted February 5, 2015 You should use triggerClientLatentEvent or fetchRemote (need a local webserver), this methods don't need to be registered in meta. Link to comment
Bonsai Posted February 5, 2015 Share Posted February 5, 2015 Seems like you are talking about that downloadFile function. Its better to to simply open and read files and then send the data to the client. This way you can even send files from a different resource. 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