Skip to content

Commit

Permalink
Money reasons
Browse files Browse the repository at this point in the history
  • Loading branch information
GhzGarage committed Jan 15, 2024
1 parent 1d0a9b3 commit cdd1502
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/commands.lua
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ end, 'admin')
QBCore.Commands.Add('givemoney', Lang:t('command.givemoney.help'), { { name = Lang:t('command.givemoney.params.id.name'), help = Lang:t('command.givemoney.params.id.help') }, { name = Lang:t('command.givemoney.params.moneytype.name'), help = Lang:t('command.givemoney.params.moneytype.help') }, { name = Lang:t('command.givemoney.params.amount.name'), help = Lang:t('command.givemoney.params.amount.help') } }, true, function(source, args)
local Player = QBCore.Functions.GetPlayer(tonumber(args[1]))
if Player then
Player.Functions.AddMoney(tostring(args[2]), tonumber(args[3]))
Player.Functions.AddMoney(tostring(args[2]), tonumber(args[3]), 'Admin give money')
else
TriggerClientEvent('QBCore:Notify', source, Lang:t('error.not_online'), 'error')
end
Expand Down

0 comments on commit cdd1502

Please sign in to comment.