diff --git a/ReallifeGamemode.Client/assets/html/inventory/inventory.html b/ReallifeGamemode.Client/assets/html/inventory/inventory.html index 9b3f24a9..8684335a 100644 --- a/ReallifeGamemode.Client/assets/html/inventory/inventory.html +++ b/ReallifeGamemode.Client/assets/html/inventory/inventory.html @@ -116,7 +116,7 @@ handelItemID.push(handelInv[i].ID); handelItemAmount.push(handelInv[i].Amount); } - mp.trigger("CEF:submitTrade", 0, JSON.stringify($('#fname').val()), JSON.stringify(handelItemID), JSON.stringify(handelItemAmount)) + mp.trigger("CEF:tradeItem", 0, JSON.stringify($('#fname').val()), JSON.stringify(handelItemID), JSON.stringify(handelItemAmount)) } }); $("#tf_cancle4").unbind('click').click(function () { diff --git a/ReallifeGamemode.Server/Managers/InventoryManager.cs b/ReallifeGamemode.Server/Managers/InventoryManager.cs index dd5417a6..0ff61dd0 100644 --- a/ReallifeGamemode.Server/Managers/InventoryManager.cs +++ b/ReallifeGamemode.Server/Managers/InventoryManager.cs @@ -181,6 +181,7 @@ namespace ReallifeGamemode.Server.Managers var user = client.GetUser(); using (var context = new DatabaseContext()) { + Console.WriteLine(origin); if (origin[0] == 1) { foreach (Vehicle veh in NAPI.Pools.GetAllVehicles())