/save fvehicle fac1,fac2 preis
This commit is contained in:
@@ -158,7 +158,7 @@ namespace ReallifeGamemode.Server.Managers
|
||||
|
||||
|
||||
public static Vehicle SaveFactionVehicleData(Vehicle veh, VehicleHash vehicleModel, Vector3 vehiclePosition, float vehicleHeading,
|
||||
string vehicleNumberPlate, int vehiclePrimaryColor, int vehicleSecondaryColor, bool vehicleLocked, bool vehicleEngine, int[] factionId, int livery)
|
||||
string vehicleNumberPlate, int vehiclePrimaryColor, int vehicleSecondaryColor, bool vehicleLocked, bool vehicleEngine, int[] factionId, int livery, int buyPrice)
|
||||
{
|
||||
using (var saveData = new DatabaseContext())
|
||||
{
|
||||
@@ -175,7 +175,8 @@ namespace ReallifeGamemode.Server.Managers
|
||||
SecondaryColor = vehicleSecondaryColor,
|
||||
Locked = vehicleLocked,
|
||||
Active = true,
|
||||
Livery = livery
|
||||
Livery = livery,
|
||||
BuyPrice = buyPrice
|
||||
};
|
||||
saveData.FactionVehicles.Add(dataSet);
|
||||
saveData.SaveChanges();
|
||||
|
||||
Reference in New Issue
Block a user