Skip to content

Commit

Permalink
Fix Issue Taking Payment For Furniture (#74)
Browse files Browse the repository at this point in the history
  • Loading branch information
iLickPandas21 authored Aug 3, 2023
1 parent d68ca86 commit ca82d58
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions server/sv_property.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ca82d58

Please sign in to comment.