Skip to content

Commit 2ab191a

Browse files
authored
Merge pull request #460 from theghostglitch/patch-1
Update consumables.lua - Animation Bug.
2 parents 826082f + 34ba3fc commit 2ab191a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

client/consumables.lua

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -370,6 +370,7 @@ RegisterNetEvent('consumables:client:meth', function()
370370
end)
371371

372372
RegisterNetEvent('consumables:client:UseJoint', function()
373+
local gender = QBCore.Functions.GetPlayerData().charinfo.gender
373374
QBCore.Functions.Progressbar('smoke_joint', Lang:t('consumables.joint_progress'), 1500, false, true, {
374375
disableMovement = false,
375376
disableCarMovement = false,
@@ -379,6 +380,8 @@ RegisterNetEvent('consumables:client:UseJoint', function()
379380
TriggerEvent('inventory:client:ItemBox', QBCore.Shared.Items['joint'], 'remove')
380381
if IsPedInAnyVehicle(PlayerPedId(), false) then
381382
TriggerEvent('animations:client:EmoteCommandStart', { 'smoke3' })
383+
elseif gender == 1 then
384+
TriggerEvent('animations:client:EmoteCommandStart', {"smokeweed2"})
382385
else
383386
TriggerEvent('animations:client:EmoteCommandStart', { 'smokeweed' })
384387
end

0 commit comments

Comments
 (0)