VStanced/mods
Submit a mod
Mods Guides Forum Submit a mod Log in Register

Forum

Questions, builds, help and the odd argument. The mods and guides are out front.

adding a new stock ...
 
Notifications
Clear all

adding a new stock part such as a bumper lip

7 Posts
3 Users
0 Reactions
4,291 Views
g4tnt
(@g4tnt_797)
Reputable Member
Joined: 16 years ago
Posts: 333
Topic starter   [#1161]

is it possible to add a new part in the main car java iv tried but it doesnt show up or am i doing something wrong

stock_parts_list_F = new int[4];
stock_parts_list_F[ 0] = cars.racers.Nissan_Skyline_GTR_R34:0x0000010Fr; // "F bumper" //
stock_parts_list_F[ 1] = cars.racers.Nissan_Skyline_GTR_R34:0x0000010Dr; // "hood" //
stock_parts_list_F[ 2] = cars.racers.Nissan_Skyline_GTR_R34:0x0000010Br; // "F windshield" //
stock_parts_list_F[ 2] = cars.racers.Nissan_Skyline_GTR_R34:0x0000010Fr; // "F bumper lip" //

this is what iv added in red but no joy im assuming i need to do somthing els to get it to show up in game
the mod is diman 333's GT-R R34



   
Quote
RedCarDriver
(@redcardriver_1155)
Member Moderator
Joined: 15 years ago
Posts: 1125
 

You have to change "stock_parts_list_F[ 2]" to "stock_parts_list_F[ 3]". Otherwise it will try to overwrite the part already at position 2 in the array.



   
ReplyQuote
g4tnt
(@g4tnt_797)
Reputable Member
Joined: 16 years ago
Posts: 333
Topic starter  

cheers for the reply but it's still not showing up on the car will i need to edit more then just the java file 🙁



   
ReplyQuote
Mario
(@mario_582)
Member Moderator
Joined: 16 years ago
Posts: 641
 

You should make it in the bumper java



   
ReplyQuote
g4tnt
(@g4tnt_797)
Reputable Member
Joined: 16 years ago
Posts: 333
Topic starter  

ill try that now will let you know how i get on

ok now noob moment where in the bumper java do i add the lip sorry now still kinda new to this



   
ReplyQuote
Mario
(@mario_582)
Member Moderator
Joined: 16 years ago
Posts: 641
 

It's should work from the main java too, but see this:

stock_parts_list_F = new int[4];
stock_parts_list_F[ 0] = cars.racers.Nissan_Skyline_GTR_R34:0x0000010Fr; // "F bumper" //
stock_parts_list_F[ 1] = cars.racers.Nissan_Skyline_GTR_R34:0x0000010Dr; // "hood" //
stock_parts_list_F[ 2] = cars.racers.Nissan_Skyline_GTR_R34:0x0000010Br; // "F windshield" //
stock_parts_list_F[ 2] = cars.racers.Nissan_Skyline_GTR_R34:0x0000010Fr; // "F bumper lip" //

Are you have them in this way ? with the same ID's

The name after the ID doesn't matter, it's just for you. But ID need to be the proper one

Open the cfg of the lip, there is Resource ID line. Copy/paste the ID from there



   
ReplyQuote
g4tnt
(@g4tnt_797)
Reputable Member
Joined: 16 years ago
Posts: 333
Topic starter  

thanks mate i got it now cant belive i didnt spot it, was meant to be

stock_parts_list_F[ 3] = cars.racers.Nissan_Skyline_GTR_R34:0x0000110Fr; // "F bumper lip" //

but it works now thanks again much appreciated :awesome:



   
ReplyQuote
Share: