Jump to content

Change textures


dima3367

Recommended Posts

Posted

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

Posted
Just now, FaHaD said:

You can make a table would be much easier. i can't make an example i'm in the phone but maybe you can use search or make it yourself so try to do it 

Could you make an example of being at the computer?

  • Like 1
Posted

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

 

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