Auto-sync 2026-04-15 20:35

This commit is contained in:
root 2026-04-15 20:35:01 +02:00
parent ce9dc60e94
commit 24b522c959

View File

@ -183,6 +183,9 @@ function RemoveMoney(source, type, value)
end
if type == 'cash' then
Player.removeMoney(value)
end
if type == 'black_money' then
Player.removeAccountMoney('black_money', value)
end
elseif Config.Framework == 'qb' or Config.Framework == 'oldqb' then
if type == 'bank' then
@ -204,6 +207,9 @@ function AddMoney(source, type, value)
end
if type == 'cash' then
Player.addMoney(value)
end
if type == 'black_money' then
Player.addAccountMoney('black_money', value)
end
elseif Config.Framework == 'qb' or Config.Framework == 'oldqb' then
if type == 'bank' then
@ -226,6 +232,10 @@ function GetPlayerMoney(source, value)
if value == 'cash' then
return Player.getMoney()
end
-- FÜGE DIESE ZEILEN HINZU:
if value == 'black_money' then
return Player.getAccount('black_money').money
end
elseif Config.Framework == 'qb' or Config.Framework == 'oldqb' then
if value == 'bank' then
return Player.PlayerData.money['bank']
@ -353,6 +363,8 @@ Citizen.CreateThread(function()
if itemData then
if itemData.name == 'cash' then
Player.addMoney(amount)
elseif itemData.name == 'black_money' then
Player.addAccountMoney('black_money', amount)
else
AddItem(Player.source, itemData.name, amount)
end