Skip to content

Commit

Permalink
Merge pull request #87 from warlikeprince/main
Browse files Browse the repository at this point in the history
Reward Item is added to config.lua for betterment
  • Loading branch information
GhzGarage authored Sep 5, 2024
2 parents b1fbc61 + 8f6b84f commit 446df67
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions config.lua
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ Config = {

Duty = vector3(894.88, -179.22, 74.7),

Rewards = 'cryptostick',

Advanced = {
Bonus = {
Enabled = true,
Expand Down
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 446df67

Please sign in to comment.