From ca82d583578780d27a73d625bc9b9069cd088ff6 Mon Sep 17 00:00:00 2001 From: iLickPandas21 <95833242+iLickPandas21@users.noreply.github.com> Date: Thu, 3 Aug 2023 02:11:20 +0100 Subject: [PATCH] Fix Issue Taking Payment For Furniture (#74) --- server/sv_property.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/server/sv_property.lua b/server/sv_property.lua index e900743..3771aea 100644 --- a/server/sv_property.lua +++ b/server/sv_property.lua @@ -615,10 +615,10 @@ RegisterNetEvent("ps-housing:server:buyFurniture", function(property_id, items, return end - if price > PlayerData.money.bank then - Player.Functions.RemoveMoney('bank', price, "Bought furniture") - else + if price <= PlayerData.money.cash then Player.Functions.RemoveMoney('cash', price, "Bought furniture") + else + Player.Functions.RemoveMoney('bank', price, "Bought furniture") end local numFurnitures = #property.propertyData.furnitures