From 0ab38267f88ce45e09dff8f78fa468367d964e42 Mon Sep 17 00:00:00 2001 From: Lukas Moungos Date: Thu, 12 Sep 2019 22:22:01 +0200 Subject: [PATCH] continue Inv fix --- ReallifeGamemode.Client/assets/html/inventory/inventory.html | 2 +- ReallifeGamemode.Server/Managers/InventoryManager.cs | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) 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())