qbcore-framework / qb-smallresources

A compilation of small resources combined into one
GNU General Public License v3.0
50 stars 348 forks source link

[BUG] #367

Closed Epsilona closed 11 months ago

Epsilona commented 1 year ago

Describe the bug I cannot press the button "X" the get my handsup using the qb-smallresources. But the /hu works for me.

To Reproduce Steps to reproduce the behavior:

  1. Go to 'fivem'
  2. Click on 'X'
  3. See error

Expected behavior My hands would go up in an animation.

Screenshots If applicable, add screenshots to help explain your problem.

Questions (please complete the following information):

Additional context Add any other context about the problem here.

megajkobe commented 1 year ago

Do you get any error in f8 menu or in the console log?

Epsilona commented 1 year ago

Do you get any error in f8 menu or in the console log?

No but its solved, i had to add this in the file for handsup: local animDict = "missminuteman_1ig_2" local anim = "handsup_base" local handsup = false RegisterCommand('hu', function() local ped = PlayerPedId() if not HasAnimDictLoaded(animDict) then RequestAnimDict(animDict) while not HasAnimDictLoaded(animDict) do Wait(10) end end handsup = not handsup if exports['qb-policejob']:IsHandcuffed() then return end if handsup then TaskPlayAnim(ped, animDict, anim, 8.0, 8.0, -1, 50, 0, false, false, false) exports['qb-smallresources']:addDisableControls(Config.disableHandsupControls) else ClearPedTasks(ped) exports['qb-smallresources']:removeDisableControls(Config.disableHandsupControls) end end, false)

exports('getHandsup', function() return handsup end)

RegisterKeyMapping('hu', 'Hands Up/Down', 'keyboard', 'X')

iafondo commented 1 year ago

did you delete dp emotes?

Epsilona commented 1 year ago

No i just added this in the end "RegisterKeyMapping('hu', 'Hands Up/Down', 'keyboard', 'X')"

Eridau commented 1 year ago

Can confirm this is a problem on my server as well, except I have no errors.

AnishBplayz commented 1 year ago

Create a PR if not done yet with the fix

github-actions[bot] commented 11 months ago

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