Skip to content

Commit

Permalink
Merge branch 'main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
t0r3tto authored May 20, 2024
2 parents 8ca7087 + d4116d4 commit ed0b567
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ RegisterNetEvent('qb-taxi:server:NpcPay', function(payment, hasReceivedBonus)

local chance = math.random(1, 100)
if chance < 26 then
Player.Functions.AddItem('cryptostick', 1, false)
TriggerClientEvent('inventory:client:ItemBox', src, QBCore.Shared.Items['cryptostick'], 'add')
exports['qb-inventory']:AddItem(src, 'cryptostick', 1, false, false, 'qb-taxi:server:NpcPay')
TriggerClientEvent('qb-inventory:client:ItemBox', src, QBCore.Shared.Items['cryptostick'], 'add')
end
else
DropPlayer(src, 'Attempting To Exploit')
Expand Down

0 comments on commit ed0b567

Please sign in to comment.