#Black_Hawk Posted June 21, 2017 Share Posted June 21, 2017 (edited) hello guys i'm trying to download a file from other resource like using exports to download the file calling downloadFile from other resource, but i always get the error: file not exists why i get that error ? codes of the call: function download (file) downloadFile (file) end codes of calling: addEventHandler ("onClientResourceStart", resourceRoot, function () exports["file"]:download ("files/skin.txd") end ) Edited June 21, 2017 by #Black_Hawk Link to comment
Dziugasc Posted June 21, 2017 Share Posted June 21, 2017 Because it doesn't exist maybe Link to comment
#Black_Hawk Posted June 21, 2017 Author Share Posted June 21, 2017 no it's exists and it defined in the meta nothing wrong but i got that error always here is the meta: <meta> <info name="" description="" type="script" version="1.0" /> <script src="models.lua" cache="false" type="client"/> <file src="files/skin.txd" download="false" /> </meta> Link to comment
Discord Moderators Pirulax Posted June 22, 2017 Discord Moderators Share Posted June 22, 2017 (edited) 9 hours ago, Dziugasc said: Because it doesn't exist maybe Best answer ever... Btw, why you want to download that file?Even if its in the x resource you can use it in the y resource like this: --Example local font = dxCreateFont(":x/files/font.ttf",9,false,"antianalised") Edited June 22, 2017 by Pirulax Link to comment
#Black_Hawk Posted June 22, 2017 Author Share Posted June 22, 2017 (edited) i used like this: files/skin.txd and also like this: :Models/files/skin.txd nothing works Edited June 22, 2017 by #Black_Hawk Link to comment
Skarbonke Posted June 22, 2017 Share Posted June 22, 2017 maybe in the meta add the file, idk if it would help, but u never know Link to comment
MIKI785 Posted June 23, 2017 Share Posted June 23, 2017 You could use triggerLatentClientEvent to send the file, that will always work. 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