Jump to content

Change textures


dima3367

Recommended Posts

Hello! Do winter mod for GTA SA card has all the texture maps converted before winter.
I prescribe them like this:

 

function onResourceStart()
noname1 = engineLoadTXD ('des_nw.txd')
engineImportTXD (noname1, 11429)
end
addEventHandler('onClientResourceStart', getResourceRootElement(getThisResource()), onResourceStart)

 

This is a very difficult and long. Whether it is possible to do anything faster? Perhaps there is another way?

Thank you in advance!

 

And sorry for my bad english :)

Link to comment

You can try this :

 

aMyModels = {
	--  { FilePath Without.txd,ModelID };
		{ 'des_nw',11429 };
		{ 'des_nwTwo',11500 }; -- That's just an example.
	};


addEventHandler ( 'onClientResourceStart',resourceRoot,
	function (		)
		for _,aV in ipairs ( aMyModels ) do
			if fileExists( ''..aV[1]..'.txd' ) then
			engineImportTXD ( engineLoadTXD ( ''..aV[1]..'.txd' ),aV[2] );
			end
		end
	end
);

 

Link to comment

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