Save Livery for Faction Vehicles
This commit is contained in:
@@ -26,6 +26,7 @@ namespace ReallifeGamemode.Server.Entities
|
||||
public bool Active { get; set; }
|
||||
public float DistanceDriven { get; set; }
|
||||
public float TankAmount { get; set; }
|
||||
public int Livery { get; set; }
|
||||
|
||||
[NotMapped]
|
||||
public Vector3 Position => new Vector3(PositionX, PositionY, PositionZ);
|
||||
@@ -43,6 +44,7 @@ namespace ReallifeGamemode.Server.Entities
|
||||
int c2 = this.SecondaryColor;
|
||||
string np = this.NumberPlate;
|
||||
Vehicle veh = NAPI.Vehicle.CreateVehicle(Model, position, heading, c1, c2, "", 255, false, false);
|
||||
veh.Livery = Livery;
|
||||
VehicleStreaming.SetEngineState(veh, false);
|
||||
VehicleStreaming.SetLockStatus(veh, this.Locked);
|
||||
VehicleManager.AddVehicle(this, veh);
|
||||
|
||||
Reference in New Issue
Block a user