Skip to content

Commit 34ba3fc

Browse files
Update consumables.lua - Animation Bug.
Fixed a small animation bug in UseJoint. There's a smokeweed2 animation for female characters.
1 parent 826082f commit 34ba3fc

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)