Skip to content

Commit

Permalink
Fix cash not syncing with inventory
Browse files Browse the repository at this point in the history
  • Loading branch information
Scullyy committed Apr 18, 2024
1 parent 14a67a7 commit 8f5e5ae
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions server/main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -154,12 +154,10 @@ local playerDataOptions = {
crafting = function(target, input) target.Functions.SetMetaData('craftingrep', input[1]) end,
dealer = function(target, input) target.Functions.SetMetaData('dealerrep', input[1]) end,
cash = function(target, input)
target.PlayerData.money.cash = input[1]
target.Functions.SetPlayerData('money', target.PlayerData.money)
target.Functions.SetMoney('cash', input[1], 'qbx_adminmenu')
end,
bank = function(target, input)
target.PlayerData.money.bank = input[1]
target.Functions.SetPlayerData('money', target.PlayerData.money)
target.Functions.SetMoney('bank', input[1], 'qbx_adminmenu')
end,
job = function(target, input)
target.Functions.SetJob(input[1], input[2])
Expand Down

0 comments on commit 8f5e5ae

Please sign in to comment.