From 6c32c9ede0e03a88a6c81780ed4556a0844fd139 Mon Sep 17 00:00:00 2001 From: ElPumpo Date: Sat, 29 Dec 2018 14:47:29 +0100 Subject: [PATCH] Fixed bank money being droppable --- client/functions.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/client/functions.lua b/client/functions.lua index 54969ba3..81a449d3 100644 --- a/client/functions.lua +++ b/client/functions.lua @@ -1002,6 +1002,7 @@ ESX.ShowInventory = function() for i=1, #ESX.PlayerData.accounts, 1 do if ESX.PlayerData.accounts[i].money > 0 then local formattedMoney = _U('locale_currency', ESX.Math.GroupDigits(ESX.PlayerData.accounts[i].money)) + local canDrop = ESX.PlayerData.accounts[i].name ~= 'bank' table.insert(elements, { label = ('%s: %s'):format(ESX.PlayerData.accounts[i].label, formattedMoney), @@ -1010,7 +1011,7 @@ ESX.ShowInventory = function() value = ESX.PlayerData.accounts[i].name, usable = false, rare = false, - canRemove = true + canRemove = canDrop }) end end