qbcore-framework / qb-inventory

Slot Based Inventory System Used With QB-Core :school_satchel:
GNU General Public License v3.0
49 stars 376 forks source link

[BUG] How to remove open inventory animation? #413

Closed owlel closed 10 months ago

owlel commented 1 year ago

Summary

Open Inventory animation messes with weapon draw

Reproduction

The animation is slow for some reason in my server when it comes to opening the inventory and drawing a weapon afterwards, when I draw my weapon my arms are still in the animation to open my inventory. Im looking through configs and seeing where I can possibly remove this animation to help? If anyone knows where it may be.

image

Expected behavior

For us to draw our weapons faster and normally.

Actual behavior

Hands are glitched and stuck in the open inventory animation for 2 seconds, while drawing and shooting my gun.

Additional context

No response

Last Updated

This week

Custom Resources

qb-core

Resource Rename

No

vipexv commented 1 year ago

image

vipexv commented 1 year ago

Client/Main.lua, it should be that, not sure tho, you can go ahead and simply remove the function or just remove line of code that executes that function, i would suggest the second option since this function i'm guessing is used a lot.

vipexv commented 1 year ago

Don't delete the function, simply remove this line of code. image

Mexdrimbe commented 1 year ago

I don't know if I'm answering late. But if you still need help with that, follow the instructions below

here is the code that makes you do an animation when you open the inventory:

local function openAnim() LoadAnimDict('pickup_object') TaskPlayAnim(PlayerPedId(),'pickup_object', 'putdown_low', 5.0, 1.5, 1.0, 48, 0.0, 0, 0, 0) end

so what you want to do is you simply just change 5.0, 1.5, 1.0, 48, 0.0, 0, 0, 0 to 0.0, 0.0, 0.0, 00, 0.0, 0, 0, 0

Hope this helped even though I'm replying late.

Mexdrimbe commented 1 year ago

Don't delete the function, simply remove this line of code. image

this is wrong

github-actions[bot] commented 10 months ago

This issue has had 60 days of inactivity & will close within 7 days