Skip to content

Commit

Permalink
Inventory Update
Browse files Browse the repository at this point in the history
  • Loading branch information
GhzGarage committed May 20, 2024
1 parent 6969a74 commit 98b72af
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions server/main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -56,15 +56,15 @@ RegisterServerEvent('AttackTransport:graczZrobilnapad', function()
local info = {
worth = math.random(Config.Payout.Min, Config.Payout.Max)
}
xPlayer.Functions.AddItem('markedbills', bags, false, info)
TriggerClientEvent('inventory:client:ItemBox', _source, QBCore.Shared.Items['markedbills'], 'add')
exports['qb-inventory']:AddItem(_source, 'markedbills', bags, false, info, 'AttackTransport:graczZrobilnapad')
TriggerClientEvent('qb-inventory:client:ItemBox', _source, QBCore.Shared.Items['markedbills'], 'add')

local chance = math.random(1, 100)
TriggerClientEvent('QBCore:Notify', _source, 'You took ' .. bags .. ' bags of cash from the van')

if chance >= 95 then
xPlayer.Functions.AddItem('security_card_01', 1)
TriggerClientEvent('inventory:client:ItemBox', _source, QBCore.Shared.Items['security_card_01'], 'add')
exports['qb-inventory']:AddItem(_source, 'security_card_01', 1, false, false, 'AttackTransport:graczZrobilnapad')
TriggerClientEvent('qb-inventory:client:ItemBox', _source, QBCore.Shared.Items['security_card_01'], 'add')
end
Wait(2500)
end)

0 comments on commit 98b72af

Please sign in to comment.