SkatCh Posted August 28, 2014 Posted August 28, 2014 guys i have a question , what's the best way to decrease my server size . Failure is simply an opportunity to begin again more intelligently - Henry Ford
xXMADEXx Posted August 28, 2014 Posted August 28, 2014 Use the downloadFile function, or my http mod loader resource. The Ultimate Lua Tutorial! | MTA PHP SDK
SkatCh Posted August 29, 2014 Author Posted August 29, 2014 sorry i read it all but i don't undrestand exactll what i need to do can u help me with simple steps example i want or download xXMADEXx.dff . 1- first i need to add download to the meta.xml like this : (true it means it will dowload it on resource start right). "xXMADEXx.dff" download="true"/> 2- after i add it to meta.xml what i need to do i think i need to delete the file from the resource folder right then i need to upload it to HTTP server Failure is simply an opportunity to begin again more intelligently - Henry Ford
Anubhav Posted August 29, 2014 Posted August 29, 2014 1. Meta.xml <file src="xXMADEXx.dff" download="false"/> 2. No need to do delete, just use: downloadFile('xXMADEXx.dff') And use the event onClientFileDownloadComplete to check if its completed. See my some resources: Skin shop: https://community.multitheftauto.com/in ... ls&id=8008 Note script: https://community.multitheftauto.com/in ... ls&id=8009 Rules Panel: https://community.multitheftauto.com/in ... ls&id=8246 Random Money: https://community.multitheftauto.com/in ... ls&id=8718
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