Added /tov and /ghv (To Vehicle & Get Here Vehicle)

This commit is contained in:
hydrant
2018-12-03 00:46:13 +01:00
parent 2dbdc3f2eb
commit ca433e537e
3 changed files with 53 additions and 2 deletions

View File

@@ -41,6 +41,11 @@ namespace reallife_gamemode.Server.Managers
return NAPI.Pools.GetAllVehicles().Find(v => v.Handle == handle);
}
public static Vehicle GetVehicleFromId(int id)
{
return NAPI.Pools.GetAllVehicles().Find(v => v.Handle.Value == id);
}
public static Vehicle GetVehicleFromServerVehicle(ServerVehicle serverVehicle)
{
if(!_serverVehicles.ContainsKey(serverVehicle.Id))