Bonsai Posted November 17, 2014 Share 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 Link to comment
Feche1320 Posted November 17, 2014 Share Posted November 17, 2014 When you use downloadFile or fileWrite it gets created in that directory, take a look (client-side obviously) Link to comment
Saml1er Posted November 17, 2014 Share 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") Link to comment
Bonsai Posted November 17, 2014 Author Share Posted November 17, 2014 Now imagine this without any "resourceName". Just like: \MTA San Andreas 1.3\mods\deathmatch\resources\file.txt Link to comment
Dealman Posted November 17, 2014 Share Posted November 17, 2014 It should already be written there if it's created client-side. Link to comment
Feche1320 Posted November 17, 2014 Share 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 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