Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- vector carSpawnPosition = player.GetPosition();
- carSpawnPosition[0] = carSpawnPosition[0] + 5;
- EntityAI myVeh = EntityAI.Cast(GetGame().CreateObject("OffroadHatchback", carSpawnPosition, false, true));
- myVeh.GetInventory().CreateAttachment("HatchbackWheel");
- myVeh.GetInventory().CreateAttachment("HatchbackWheel");
- myVeh.GetInventory().CreateAttachment("HatchbackWheel");
- myVeh.GetInventory().CreateAttachment("HatchbackWheel");
- myVeh.GetInventory().CreateAttachment("HatchbackWheel");
- myVeh.GetInventory().CreateAttachment("HatchbackDoors_Driver");
- myVeh.GetInventory().CreateAttachment("HatchbackDoors_CoDriver");
- myVeh.GetInventory().CreateAttachment("HatchbackHood");
- myVeh.GetInventory().CreateAttachment("SparkPlug");
- myVeh.GetInventory().CreateAttachment("EngineBelt");
- myVeh.GetInventory().CreateAttachment("CarRadiator");
- myVeh.GetInventory().CreateAttachment("CarBattery");
- myVeh.GetInventory().CreateAttachment("HeadlightH7");
- myVeh.GetInventory().CreateAttachment("HeadlightH7");
- myVeh.GetInventory().CreateAttachment("HatchbackTrunk");
- auto carfluids = Car.Cast( myVeh );
- carfluids.Fill( CarFluid.FUEL, 1000 );
- carfluids.Fill( CarFluid.OIL, 1000 );
- carfluids.Fill( CarFluid.BRAKE, 1000 );
- carfluids.Fill( CarFluid.COOLANT, 1000 )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement