IMG

 
IMG
IMG   IMG
  Welcome to GTAForums! Be sure to check out the Grand Theft Auto V Forum.

You are not registered! (If you are, click here to login) Registering is fast, free and easy and allows you to instantly reply to any topic on GTAForums.
Why wait? Click here to register your own unique username and become part of the ever-growing community!


( Log In | Register | Revalidate Validation E-mail )
Quick Log-In:
  IMG
       
>
Forum Rules GTA Modification Forums

This section is for any editing topics that don't fit into any of the other forums, any questions on how to mod belong in Editing Discussion

GTAGarage.com
free mod hosting from GTANet, simply login with your GTAForums account details

GTAModding.com
GTANet's modding wiki

GTA Modding Chatroom
provided by irc.gtanet.com (Don't have an IRC client? Click here)


  Reply to this topicStart new topicStart Poll

 Paintjobs on added car

 
Discount  
Posted: Tuesday, Jul 31 2012, 18:14
Quote Post


Rat
Group Icon
Group: Members
Joined: Jan 11, 2011

XXXXX



How can i make textures from paintjobs and tuning parts work on added cars ?
I know it's possible but i don't know how
PM
  Top
 

 
fastman92  
Posted: Tuesday, Jul 31 2012, 20:13
Quote Post


фастман92 | ف
Group Icon
Group: Members
Joined: Jul 28, 2009

pl.gif

XXXXX



Function 0x004C9360

CODE
CVehicleModelInfo *__cdecl assignPaintjobToVehicle(char *TxdName, int TxdIndex)
{
 char *pName; // eax@1
 char *NameSecondChar; // edx@1
 char readChar; // cl@2
 int result; // eax@3
 int NameLength; // esi@3
 int v7; // ecx@4
 int v8; // esi@4
 int v9; // edx@5
 CVehicleModelInfo *carModel; // esi@6
 size_t v11; // esi@6
 char PaintjobNumber[24]; // [sp+0h] [bp-18h]@6

 pName = TxdName;
 NameSecondChar = TxdName + 1;
 do
   readChar = *pName++;
 while ( readChar );
 NameLength = pName - NameSecondChar;
 result = isdigit((unsigned __int8)TxdName[pName - NameSecondChar - 1]);// character on Name[NameLength-1]
 if ( result )
 {
   v7 = (unsigned __int8)TxdName[NameLength - 2];
   v8 = NameLength - 2;
   if ( isdigit(v7) )
   {
     do
       v9 = (unsigned __int8)TxdName[v8-- - 1];
     while ( isdigit(v9) );
   }
   v11 = v8 + 1;
   strncpy(PaintjobNumber, TxdName, v11);
   PaintjobNumber[v11] = 0;
   result = (int)getModelByNameInRange(PaintjobNumber, 400, 630);
   carModel = (CVehicleModelInfo *)result;
   if ( result )
   {
     result = (*(int (__thiscall **)(int))(*(_DWORD *)result + 16))(result);
     if ( (_BYTE)result == 6 )
       result = sub_4C86D0(carModel, TxdIndex);
   }
 }
 return (CVehicleModelInfo *)result;
}



See it getModelByNameInRange(PaintjobNumber, 400, 630);

someone needs to build .asi that will change these numbers, 0 to 20000)
I'm working on other projects at the moment and can't afford to create a fix.
Users WebsitePMMSN
  Top
 

 
Discount  
Posted: Tuesday, Jul 31 2012, 20:28
Quote Post


Rat
Group Icon
Group: Members
Joined: Jan 11, 2011

XXXXX



Bro thanks for the reply, but honestly I did not understand sh*t from that lol
what am i supposed to do with that? Is that a cleo script file?
I alredy know a guy who did that(RTC LTK) but as is checked his profile he is unactive(sent him PM)
PM
  Top
 

 
Deji  
Posted: Tuesday, Jul 31 2012, 23:19
Quote Post


Coding like a Rockstar!
Group Icon
Group: Members
Joined: Dec 24, 2007

ja.gif

XXXXX



If you only code CLEO Scripts and can't find an opcode to find what you want to do, always assume that the help you get will probably be too advanced for you to understand tounge2.gif
Users WebsitePM
  Top
 

 
Discount  
Posted: Wednesday, Aug 1 2012, 08:53
Quote Post


Rat
Group Icon
Group: Members
Joined: Jan 11, 2011

XXXXX



Yes, I've only made a few cleos in my time and edited a few for lifting spoilers
hope fastman or someone releases/find solution soon because A lot of my added cars have paintjobs or 1 added tuning part which appears without textures
PM
  Top
 

 

0 User(s) are reading this topic (0 Guests and 0 Anonymous Users)

0 Members:

Topic Options Reply to this topicStart new topicStart Poll
Search topic for posted by (exact match)



 
IMG IMG