Progress
This commit is contained in:
@@ -17,7 +17,7 @@ namespace ReallifeGamemode.Server.Shop.Ammunation
|
||||
|
||||
public Ammunation(Vector3 position)
|
||||
{
|
||||
this.vector = vector;
|
||||
this.vector = position;
|
||||
LoadWeapons();
|
||||
}
|
||||
|
||||
@@ -30,27 +30,8 @@ namespace ReallifeGamemode.Server.Shop.Ammunation
|
||||
}
|
||||
public void LoadShopNUI(Player client)
|
||||
{
|
||||
User u = client.GetUser();
|
||||
|
||||
if (u == null)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
//List<Weapon> melee = weaponList.ToList().FindAll(w => w.Category == "Nahkampfwaffen"); //1
|
||||
List<Weapon> handguns = weaponList.ToList().FindAll(w => w.CategoryId == 2); //2
|
||||
//List<Weapon> smgs = weaponList.ToList().FindAll(w => w.Category == "Maschinenpistolen"); //3
|
||||
//List<Weapon> shotguns = weaponList.ToList().FindAll(w => w.Category == "Schrotflinten"); //4
|
||||
//List<Weapon> assaultrifles = weaponList.ToList().FindAll(w => w.Category == "Sturmgewehre"); //5
|
||||
//List<Weapon> lmgs = weaponList.ToList().FindAll(w => w.Category == "Leichte Maschinengewehre"); //6
|
||||
//List<Weapon> sniperrifles = weaponList.ToList().FindAll(w => w.Category == "Scharfschützengewehre"); //7
|
||||
//List<Weapon> heavyweapons = weaponList.ToList().FindAll(w => w.Category == "Schwere Waffen"); //8
|
||||
//List<Weapon> throwables = weaponList.ToList().FindAll(w => w.Category == "Werfbare Waffen"); //9
|
||||
|
||||
List<Array> shopWeapons = new List<Array>
|
||||
{
|
||||
handguns.ToArray(),
|
||||
};
|
||||
List<Weapon> shopWeapons = weaponList.ToList();
|
||||
client.TriggerEvent("AmmunationShop:LoadNativeUI", JsonConvert.SerializeObject(shopWeapons));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user