undefined Posted July 1, 2015 Posted July 1, 2015 (edited) Im make a download system. So first important script, second ... But it's give error. downloadFile(":object/Skins/dead.col") Script is running. What is the problem? Thx Edited July 1, 2015 by Guest
John Smith Posted July 1, 2015 Posted July 1, 2015 ":" is used to load a file from another resource; resource which isnt the one you're currently running you could use downloadFile(":[3D]/object/Skins/dead.col") or if you're currently in 3D resource's script then use downloadFile("object/Skins/dead.col") If you find my post useful or if it helped you, please like my post Ingame name: ZoeN
John Smith Posted July 1, 2015 Posted July 1, 2015 can you post the file path from your pc where this is located? e.g C:\Program Files (x86)\MTA San Andreas 1.4\server\mods\deathmatch\resources\resource-name\etc (also code where downloadFile is would be useful) If you find my post useful or if it helped you, please like my post Ingame name: ZoeN
undefined Posted July 1, 2015 Author Posted July 1, 2015 Solved! downloadFile is work only if downloadFile function and file in the same resource.
Moderators IIYAMA Posted July 1, 2015 Moderators Posted July 1, 2015 That is more than logic, to keep everything save. But you can copy the file to another resource. (or just temporary) Do you want to improve your Lua programming skills and make less mistakes? Start with Lua Language Server! Useful functions 3x Spoiler checkPassiveTimer getScreenStartPositionFromBox getPedGender Tutorials 4x Spoiler Scaling DX Events Attach an addEventHandler on a group of elements Debugging
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