Skip to content

Commit

Permalink
fix: consumables
Browse files Browse the repository at this point in the history
* Update consumables.lua

* Update consumables.lua
  • Loading branch information
TonybynMp4 authored Feb 12, 2024
1 parent 65a2eb4 commit 94ad1b5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions client/consumables.lua
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ lib.callback.register('consumables:client:Eat', function(itemName)
dict = 'mp_player_inteat@burger',
flag = 49
},
prop = sharedConfig.consumables.food[itemName].anim.prop or {
prop = sharedConfig.consumables.food[itemName].prop or {
{
model = 'prop_cs_burger_01',
bone = 18905,
Expand Down Expand Up @@ -416,4 +416,4 @@ CreateThread(function()
Wait(2000)
end
end
end)
end)
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 94ad1b5

Please sign in to comment.