some changes

This commit is contained in:
michael.reiswich
2021-05-21 20:57:55 +02:00
parent a5b6f3215e
commit a1234a7fcf
7 changed files with 27 additions and 12 deletions

View File

@@ -19,6 +19,9 @@ 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;
@@ -28,6 +31,8 @@ namespace ReallifeGamemode.Server.Inventory.Items
return false;
}
Vehicle veh = null;
var nearestVeh = NAPI.Pools.GetAllVehicles().Where(v => v.Position.DistanceTo(player.Position) <= 5).FirstOrDefault();