Auto-sync 2026-04-15 20:35
This commit is contained in:
parent
ce9dc60e94
commit
24b522c959
@ -184,6 +184,9 @@ function RemoveMoney(source, type, value)
|
||||
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
|
||||
Player.Functions.RemoveMoney('bank', value)
|
||||
@ -205,6 +208,9 @@ function AddMoney(source, type, value)
|
||||
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
|
||||
Player.Functions.AddMoney('bank', value)
|
||||
@ -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,9 +363,11 @@ Citizen.CreateThread(function()
|
||||
if itemData then
|
||||
if itemData.name == 'cash' then
|
||||
Player.addMoney(amount)
|
||||
else
|
||||
elseif itemData.name == 'black_money' then
|
||||
Player.addAccountMoney('black_money', amount)
|
||||
else
|
||||
AddItem(Player.source, itemData.name, amount)
|
||||
end
|
||||
end
|
||||
if Config.UseDiscordWebhooks then
|
||||
local discorddata = {
|
||||
playername = GetName(Player.source),
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user