Jump to content

downoaldFile ERROR


Recommended Posts

Posted

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]

Posted
function  downoad () 
       downloadFile ( "46.txd" ) 
end 
addEventHandler ( "onClientResourceStart", resourceRoot, downnoad ) 

Put it to client side

Posted
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 !

Posted (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 by Guest
Posted
# 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)

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