Jump to content

[HELP]MTA File Changes


[A]-S

Recommended Posts

Posted (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 by Guest
Posted

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 ) 
  

Posted
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 :/

Posted

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).

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...