Bonsai Posted November 17, 2014 Posted November 17, 2014 Hey Peeps, is there a way to directly write into the resource cache? At the moment I'm creating all the files into my downloader resource and I would like to change it to the way MTA itself handles it, by just writing it into the resource cache folder. Meaning this: \MTA San Andreas 1.3\mods\deathmatch\resources Bonsai
Feche1320 Posted November 17, 2014 Posted November 17, 2014 When you use downloadFile or fileWrite it gets created in that directory, take a look (client-side obviously)
Saml1er Posted November 17, 2014 Posted November 17, 2014 How are you creating the files? -- This will write in your download resource folder fileCreate("resourceName/file.txt") Have you tried this? -- This will write into deathmatch\resources fileCreate(":resourceName/file.txt")
Bonsai Posted November 17, 2014 Author Posted November 17, 2014 Now imagine this without any "resourceName". Just like: \MTA San Andreas 1.3\mods\deathmatch\resources\file.txt
Dealman Posted November 17, 2014 Posted November 17, 2014 It should already be written there if it's created client-side.
Feche1320 Posted November 17, 2014 Posted November 17, 2014 Now imagine this without any "resourceName". Just like: \MTA San Andreas 1.3\mods\deathmatch\resources\file.txt You cannot write to that directory
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