===[PRO]=== Posted May 14, 2013 Share Posted May 14, 2013 Hi People I m trying to make downoald file with code:downoaldFile meta.xml: client: function downoad () downloadFile ( "46.txd" ) end but code not working and /debugscript 3 [attempt] to call global donwoaldFile(a nil value) and also the file was downoalded when the resource start and not with code [downoaldFile] Link to comment
iPrestege Posted May 14, 2013 Share Posted May 14, 2013 Are you trying to prevent download the file on a player device ? Link to comment
Lucario Posted May 14, 2013 Share Posted May 14, 2013 function downoad () downloadFile ( "46.txd" ) end addEventHandler ( "onClientResourceStart", resourceRoot, downnoad ) Put it to client side Link to comment
iPrestege Posted May 14, 2013 Share Posted May 14, 2013 function downoad () downloadFile ( "46.txd" ) end addEventHandler ( "onClientResourceStart", resourceRoot, downnoad ) Put it to client side No the download file function is not available now on the MTA 1.4 version ! Link to comment
===[PRO]=== Posted May 14, 2013 Author Share Posted May 14, 2013 (edited) function downoad () downloadFile ( "46.txd" ) end addEventHandler ( "onClientResourceStart", resourceRoot, downnoad ) Put it to client side i don t want downoald file when the resource start,if i want that i will just set in meta.xml [download=true] addEvent("event",true) addEventHandler("event",root, function() downloadFile ( "46.txd" ) end) I want just downoald file for specific player Edited May 14, 2013 by Guest Link to comment
iPrestege Posted May 14, 2013 Share Posted May 14, 2013 # The MTA Wiki Say :download: Whether or not to be sent to the client automatically (optional). Default is "true". Using "false" will mean they are not sent on resource start but could later be used by downloadFile (from version 1.4) Link to comment
PaiN^ Posted May 14, 2013 Share Posted May 14, 2013 use the cache in the meta.xml file 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