Skip to content

Commit

Permalink
Update main.lua
Browse files Browse the repository at this point in the history
Reward Item shifted to config file
  • Loading branch information
warlikeprince authored Jun 14, 2024
1 parent e887125 commit 1edb9c6
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
exports['qb-inventory']:AddItem(src, 'cryptostick', 1, false, false, 'qb-taxi:server:NpcPay')
TriggerClientEvent('qb-inventory:client:ItemBox', src, QBCore.Shared.Items['cryptostick'], 'add')
exports['qb-inventory']:AddItem(src, Config.Rewards, 1, false, false, 'qb-taxi:server:NpcPay')
TriggerClientEvent('qb-inventory:client:ItemBox', src, QBCore.Shared.Items[Config.Rewards], 'add')
end
else
DropPlayer(src, 'Attempting To Exploit')
Expand Down

0 comments on commit 1edb9c6

Please sign in to comment.