[A]-S Posted June 6, 2014 Posted June 6, 2014 (edited) hello, is it possible to replace a file on mta root folder with a script that comes from the server? also if u can replace any file, that would be great. and give me some advice how to do it. because some player using modded radar.png on the server.. tnx in advance (Sorry bad english) Edited June 7, 2014 by Guest
[A]-S Posted June 7, 2014 Author Posted June 7, 2014 how to replace a file?copy and paste EDITED, forgot to put "script" in the post
xXMADEXx Posted June 7, 2014 Posted June 7, 2014 You mean something like this? local path = ":exResource/newfile.txt" local f = fileLoad ( path, fileGetSize ( path ) ) fileWrite ( f, "This is an updated file" ) fileClose ( f )
MIKI785 Posted June 7, 2014 Posted June 7, 2014 mta root folder Of course you can't change those... you can only modify resource files.
[A]-S Posted June 8, 2014 Author Posted June 8, 2014 you can only modify resource files. then how can resource file can modify GTA3.img? curious if u can actually change anything at the MTA Folder through the Resource
MIKI785 Posted June 8, 2014 Posted June 8, 2014 You don't change anything, and gta3.img is in GTA folder. You don't change its contents, you just replace the model in game through engine functions (look up at wiki).
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