dima3367 Posted November 2, 2016 Share Posted November 2, 2016 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
iPrestege Posted November 2, 2016 Share Posted November 2, 2016 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 1 Link to comment
dima3367 Posted November 2, 2016 Author Share Posted November 2, 2016 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? 1 Link to comment
iPrestege Posted November 2, 2016 Share Posted November 2, 2016 Just now, dima3367 said: Could you make an example of being at the computer? When i get home for sure i can make you one . . 1 Link to comment
iPrestege Posted November 2, 2016 Share Posted November 2, 2016 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
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