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.