Jump to content

downoaldFile ERROR


Recommended Posts

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