staatsfrak wt speedo
This commit is contained in:
@@ -18,7 +18,7 @@ namespace ReallifeGamemode.Server.WeaponDeal
|
|||||||
public static int[] WEAPON_DEAL_FACTIONS => WEAPON_DEAL_GANG_IDS.Concat(WEAPON_DEAL_STAATSFRAK_IDS).Distinct().ToArray();
|
public static int[] WEAPON_DEAL_FACTIONS => WEAPON_DEAL_GANG_IDS.Concat(WEAPON_DEAL_STAATSFRAK_IDS).Distinct().ToArray();
|
||||||
|
|
||||||
public static readonly VehicleHash WEAPON_DEAL_GANG_VEHICLE_HASH = VehicleHash.Gburrito2;
|
public static readonly VehicleHash WEAPON_DEAL_GANG_VEHICLE_HASH = VehicleHash.Gburrito2;
|
||||||
public static readonly VehicleHash WEAPON_DEAL_STAATSFRAK_VEHICLE_HASH = VehicleHash.Policet;
|
public static readonly VehicleHash WEAPON_DEAL_STAATSFRAK_VEHICLE_HASH = VehicleHash.Speedo;
|
||||||
|
|
||||||
private const int WEAPON_AMOUNT_GANG = 1;
|
private const int WEAPON_AMOUNT_GANG = 1;
|
||||||
private const int WEAPON_AMOUNT_GANG_PISTOL50 = 3;
|
private const int WEAPON_AMOUNT_GANG_PISTOL50 = 3;
|
||||||
@@ -196,9 +196,12 @@ namespace ReallifeGamemode.Server.WeaponDeal
|
|||||||
Vehicle fVeh = VehicleManager.GetVehicleFromServerVehicle(factionVehicle);
|
Vehicle fVeh = VehicleManager.GetVehicleFromServerVehicle(factionVehicle);
|
||||||
fVeh.SetData("weaponDeal", false);
|
fVeh.SetData("weaponDeal", false);
|
||||||
fVeh.SetData("WeaponDealLoad", true);
|
fVeh.SetData("WeaponDealLoad", true);
|
||||||
fVeh.AddAttachment("weapondeal", false);
|
if (WEAPON_DEAL_GANG_IDS.Contains(user.FactionId.Value))
|
||||||
|
{
|
||||||
|
fVeh.AddAttachment("weapondeal", false);
|
||||||
|
fVeh.AddAttachment("weapondeal2", false);
|
||||||
|
}
|
||||||
fVeh.AddAttachment("weapondeal1", false);
|
fVeh.AddAttachment("weapondeal1", false);
|
||||||
fVeh.AddAttachment("weapondeal2", false);
|
|
||||||
InventoryManager.RemoveAllItemsfromVehicleInventory(fVeh);
|
InventoryManager.RemoveAllItemsfromVehicleInventory(fVeh);
|
||||||
int oMembers = NAPI.Pools.GetAllPlayers().Where(p => !p.IsAfk() && p.IsLoggedIn() && p.GetUser(context).FactionId == user.FactionId).Count();
|
int oMembers = NAPI.Pools.GetAllPlayers().Where(p => !p.IsAfk() && p.IsLoggedIn() && p.GetUser(context).FactionId == user.FactionId).Count();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user