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 7506f47 commit 4dfc469
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions server/main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ local function giveStarterItems()
info.birthdate = Player.PlayerData.charinfo.birthdate
info.type = 'Class C Driver License'
end
Player.Functions.AddItem(v.item, 1, nil, info)
exports['qb-inventory']:AddItem(source, v.item, 1, false, info, 'qb-cityhall:giveStarterItems')
end
end

Expand Down Expand Up @@ -72,8 +72,8 @@ RegisterNetEvent('qb-cityhall:server:requestId', function(item, hall)
else
return false -- DropPlayer(src, 'Attempted exploit abuse')
end
if not Player.Functions.AddItem(item, 1, nil, info) then return end
TriggerClientEvent('inventory:client:ItemBox', src, QBCore.Shared.Items[item], 'add')
if not exports['qb-inventory']:AddItem(source, item, 1, false, info, 'qb-cityhall:server:requestId') then return end
TriggerClientEvent('qb-inventory:client:ItemBox', src, QBCore.Shared.Items[item], 'add')
end)

RegisterNetEvent('qb-cityhall:server:sendDriverTest', function(instructors)
Expand Down

0 comments on commit 4dfc469

Please sign in to comment.