Skip to content

Commit

Permalink
Update consumables.lua
Browse files Browse the repository at this point in the history
  • Loading branch information
TonybynMp4 authored Feb 12, 2024
1 parent e8702ea commit 56682a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/consumables.lua
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ for food, params in pairs(sharedConfig.consumables.food) do
local player = exports.qbx_core:GetPlayer(source)
if not player then return end

local ate = lib.callback.await('consumables:client:Drink', source, item.name)
local ate = lib.callback.await('consumables:client:Eat', source, item.name)
if not ate then return end
if not exports.ox_inventory:RemoveItem(source, item.name, 1, nil, item.slot) then return end

Expand Down

0 comments on commit 56682a4

Please sign in to comment.