Thanks for the reply aux7 :-)
I've tried getting the M1025 to spawn in the same way that I did the normal off road hatchback but it's not appearing. Using the same basic outline the offroad hatchback would spawn when the player respawns.
The server displays several CE messages when it runs containing "Unknown category 'vehicleparts'
This is what I am using:
EntityAI car;
vector NewPosition;
vector OldPosition;
OldPosition = player.GetPosition();
NewPosition[0] = OldPosition[0] + 2;
NewPosition[1] = OldPosition[1] + 0.0;
NewPosition[2] = OldPosition[2] + 2;
car = GetGame().CreateObject( "Offroad_2", NewPosition, false, true, true );
car.GetInventory().CreateAttachment("Offroad_02_Door_1_1");
car.GetInventory().CreateAttachment("Offroad_02_Door_1_2");
car.GetInventory().CreateAttachment("Offroad_02_Door_2_1");
car.GetInventory().CreateAttachment("Offroad_02_Door_2_2");
car.GetInventory().CreateAttachment("Offroad_02_Hood");
car.GetInventory().CreateAttachment("Offroad_02_Trunk");
car.GetInventory().CreateAttachment("Offroad_02_Wheel");
car.GetInventory().CreateAttachment("Offroad_02_Wheel");
car.GetInventory().CreateAttachment("Offroad_02_Wheel");
car.GetInventory().CreateAttachment("Offroad_02_Wheel");
car.GetInventory().CreateAttachment("Offroad_02_Wheel"); //spare
car.GetInventory().CreateAttachment("GlowPlug");
car.GetInventory().CreateAttachment("CarBattery");
car.GetInventory().CreateAttachment("HeadlightH7");
car.GetInventory().CreateAttachment("HeadlightH7");
auto carfluids = Car.Cast( car );
carfluids.Fill( CarFluid.FUEL, 1000 );
carfluids.Fill( CarFluid.OIL, 1000 );
carfluids.Fill( CarFluid.BRAKE, 1000 );
carfluids.Fill( CarFluid.COOLANT, 1000 );
Thanks for any suggestions :-)