This commit is contained in:
michael.reiswich
2021-05-21 21:00:01 +02:00
parent a1234a7fcf
commit a49348ed5b

View File

@@ -19,9 +19,6 @@ namespace ReallifeGamemode.Server.Inventory.Items
public override uint Object => 875075437;
public override int Price => 500;
public static readonly VehicleHash WEAPON_DEAL_GANG_VEHICLE_HASH = VehicleHash.Gburrito2;
public static readonly VehicleHash WEAPON_DEAL_STAATSFRAK_VEHICLE_HASH = VehicleHash.Policet;
public override bool Use(UserItem uItem)
{
Player player = uItem.GetUser().Player;
@@ -31,8 +28,6 @@ namespace ReallifeGamemode.Server.Inventory.Items
return false;
}
Vehicle veh = null;
var nearestVeh = NAPI.Pools.GetAllVehicles().Where(v => v.Position.DistanceTo(player.Position) <= 5).FirstOrDefault();