Advertisement
Guest User

Untitled

a guest
Feb 22nd, 2020
127
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 1.27 KB | None | 0 0
  1.     vector carSpawnPosition = player.GetPosition();
  2.     carSpawnPosition[0] = carSpawnPosition[0] + 5;
  3.    
  4.     EntityAI myVeh = EntityAI.Cast(GetGame().CreateObject("OffroadHatchback", carSpawnPosition, false, true));
  5.     myVeh.GetInventory().CreateAttachment("HatchbackWheel");
  6.     myVeh.GetInventory().CreateAttachment("HatchbackWheel");
  7.     myVeh.GetInventory().CreateAttachment("HatchbackWheel");
  8.     myVeh.GetInventory().CreateAttachment("HatchbackWheel");
  9.     myVeh.GetInventory().CreateAttachment("HatchbackWheel");
  10.     myVeh.GetInventory().CreateAttachment("HatchbackDoors_Driver");
  11.     myVeh.GetInventory().CreateAttachment("HatchbackDoors_CoDriver");
  12.     myVeh.GetInventory().CreateAttachment("HatchbackHood");
  13.     myVeh.GetInventory().CreateAttachment("SparkPlug");
  14.     myVeh.GetInventory().CreateAttachment("EngineBelt");
  15.     myVeh.GetInventory().CreateAttachment("CarRadiator");
  16.     myVeh.GetInventory().CreateAttachment("CarBattery");
  17.     myVeh.GetInventory().CreateAttachment("HeadlightH7");
  18.     myVeh.GetInventory().CreateAttachment("HeadlightH7");
  19.     myVeh.GetInventory().CreateAttachment("HatchbackTrunk");
  20.    
  21.     auto carfluids = Car.Cast( myVeh );
  22.    
  23.     carfluids.Fill( CarFluid.FUEL, 1000 );
  24.     carfluids.Fill( CarFluid.OIL, 1000 );
  25.     carfluids.Fill( CarFluid.BRAKE, 1000 );
  26.     carfluids.Fill( CarFluid.COOLANT, 1000 )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement