Skip to content

Commit

Permalink
Add prop for alcohol
Browse files Browse the repository at this point in the history
  • Loading branch information
GhzGarage committed Nov 6, 2023
1 parent 3e70794 commit 57ebf25
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion client/consumables.lua
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,12 @@ RegisterNetEvent('consumables:client:DrinkAlcohol', function(itemName)
animDict = 'mp_player_intdrink',
anim = 'loop_bottle',
flags = 49
}, {}, {}, function() -- Done
}, {
model = 'prop_cs_beer_bot_40oz',
bone = 60309,
coords = vec3(0.0, 0.0, -0.05),
rotation = vec3(0.0, 0.0, -40),
}, {}, function() -- Done
TriggerEvent('inventory:client:ItemBox', QBCore.Shared.Items[itemName], 'remove')
TriggerServerEvent('consumables:server:drinkAlcohol', itemName)
TriggerServerEvent('consumables:server:addThirst', QBCore.Functions.GetPlayerData().metadata.thirst + Config.Consumables.alcohol[itemName])
Expand Down

0 comments on commit 57ebf25

Please sign in to comment.