add option to park vehicles in vehicle menu

This commit is contained in:
hydrant
2019-05-11 22:10:53 +02:00
parent 7b19a83e12
commit 41d756c4d2
8 changed files with 83 additions and 39 deletions

View File

@@ -1,6 +1,7 @@
using GTANetworkAPI;
using ReallifeGamemode.Server.Entities;
using ReallifeGamemode.Server.Managers;
using ReallifeGamemode.Server.Models;
using System;
using System.Collections.Generic;
using System.Text;
@@ -9,9 +10,9 @@ namespace ReallifeGamemode.Server.Extensions
{
public static class VehicleExtension
{
public static ServerVehicle GetServerVehicle(this Vehicle veh)
public static ServerVehicle GetServerVehicle(this Vehicle veh, DatabaseContext context = null)
{
return VehicleManager.GetServerVehicleFromVehicle(veh);
return VehicleManager.GetServerVehicleFromVehicle(veh, context);
}
}
}