Attachmen Manager

This commit is contained in:
kookroach
2021-04-04 22:42:49 +02:00
parent af0b51d0dc
commit cf6fa13080
7 changed files with 28 additions and 10 deletions

View File

@@ -185,6 +185,9 @@ namespace ReallifeGamemode.Server.WeaponDeal
Vehicle fVeh = VehicleManager.GetVehicleFromServerVehicle(factionVehicle);
fVeh.SetData("weaponDeal", false);
fVeh.SetData("WeaponDealLoad", true);
fVeh.AddAttachment("weapondeal", false);
fVeh.AddAttachment("weapondeal1", false);
fVeh.AddAttachment("weapondeal2", false);
InventoryManager.RemoveAllItemsfromVehicleInventory(fVeh);
int oMembers = NAPI.Pools.GetAllPlayers().Where(p => p.IsLoggedIn() && p.GetUser(context).FactionId == user.FactionId).Count();