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
|
if type == 'cash' then
|
||||||
Player.removeMoney(value)
|
Player.removeMoney(value)
|
||||||
end
|
end
|
||||||
|
if type == 'black_money' then
|
||||||
|
Player.removeAccountMoney('black_money', value)
|
||||||
|
end
|
||||||
elseif Config.Framework == 'qb' or Config.Framework == 'oldqb' then
|
elseif Config.Framework == 'qb' or Config.Framework == 'oldqb' then
|
||||||
if type == 'bank' then
|
if type == 'bank' then
|
||||||
Player.Functions.RemoveMoney('bank', value)
|
Player.Functions.RemoveMoney('bank', value)
|
||||||
@ -205,6 +208,9 @@ function AddMoney(source, type, value)
|
|||||||
if type == 'cash' then
|
if type == 'cash' then
|
||||||
Player.addMoney(value)
|
Player.addMoney(value)
|
||||||
end
|
end
|
||||||
|
if type == 'black_money' then
|
||||||
|
Player.addAccountMoney('black_money', value)
|
||||||
|
end
|
||||||
elseif Config.Framework == 'qb' or Config.Framework == 'oldqb' then
|
elseif Config.Framework == 'qb' or Config.Framework == 'oldqb' then
|
||||||
if type == 'bank' then
|
if type == 'bank' then
|
||||||
Player.Functions.AddMoney('bank', value)
|
Player.Functions.AddMoney('bank', value)
|
||||||
@ -226,6 +232,10 @@ function GetPlayerMoney(source, value)
|
|||||||
if value == 'cash' then
|
if value == 'cash' then
|
||||||
return Player.getMoney()
|
return Player.getMoney()
|
||||||
end
|
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
|
elseif Config.Framework == 'qb' or Config.Framework == 'oldqb' then
|
||||||
if value == 'bank' then
|
if value == 'bank' then
|
||||||
return Player.PlayerData.money['bank']
|
return Player.PlayerData.money['bank']
|
||||||
@ -352,10 +362,12 @@ Citizen.CreateThread(function()
|
|||||||
if Player then
|
if Player then
|
||||||
if itemData then
|
if itemData then
|
||||||
if itemData.name == 'cash' then
|
if itemData.name == 'cash' then
|
||||||
Player.addMoney(amount)
|
Player.addMoney(amount)
|
||||||
else
|
elseif itemData.name == 'black_money' then
|
||||||
AddItem(Player.source, itemData.name, amount)
|
Player.addAccountMoney('black_money', amount)
|
||||||
end
|
else
|
||||||
|
AddItem(Player.source, itemData.name, amount)
|
||||||
|
end
|
||||||
if Config.UseDiscordWebhooks then
|
if Config.UseDiscordWebhooks then
|
||||||
local discorddata = {
|
local discorddata = {
|
||||||
playername = GetName(Player.source),
|
playername = GetName(Player.source),
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user