diff --git a/ReallifeGamemode.Client/assets/html/inventory/inventory.html b/ReallifeGamemode.Client/assets/html/inventory/inventory.html index 8684335a..f29cfdd5 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:tradeItem", 0, JSON.stringify($('#fname').val()), JSON.stringify(handelItemID), JSON.stringify(handelItemAmount)) + mp.trigger("CEF:tradeItem", 0, JSON.stringify(String($('#fname').value())), 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 0ff61dd0..8ef7105a 100644 --- a/ReallifeGamemode.Server/Managers/InventoryManager.cs +++ b/ReallifeGamemode.Server/Managers/InventoryManager.cs @@ -181,7 +181,7 @@ namespace ReallifeGamemode.Server.Managers var user = client.GetUser(); using (var context = new DatabaseContext()) { - Console.WriteLine(origin); + Console.WriteLine("HIER LENNART ->>>>, "+origin); if (origin[0] == 1) { foreach (Vehicle veh in NAPI.Pools.GetAllVehicles())