Skip to content

Commit

Permalink
fix(client/interactions): adjust invBusy positioning
Browse files Browse the repository at this point in the history
  • Loading branch information
mafewtm committed Dec 13, 2024
1 parent 368ce2e commit 5ce042e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions client/interactions.lua
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,10 @@ lib.callback.register('qbx_police:client:getHandcuffed', function()
SetCurrentPedWeapon(cache.ped, `WEAPON_UNARMED`, true)
FreezeEntityPosition(cache.ped, true)

local success = lib.skillCheck('medium')

LocalPlayer.state.invBusy = true

local success = lib.skillCheck('medium')

lib.playAnim('mp_arrest_paired', 'crook_p2_back_right', 8.0, 8.0, 3750, 48, 0.0, false, 0, false)
Wait(3750)

Expand Down Expand Up @@ -70,14 +70,14 @@ end)
RegisterNetEvent('qbx_police:client:getUnhandcuffed', function()
FreezeEntityPosition(cache.ped, true)

LocalPlayer.state.invBusy = false

lib.playAnim('mp_arresting', 'b_uncuff', 8.0, 8.0, 5500, 48, 0.0, false, 0, false)
Wait(5500)

lib.disableControls:Remove(disabledControls)
lib.disableRadial(false)

LocalPlayer.state.invBusy = false

FreezeEntityPosition(cache.ped, false)
end)

Expand Down

0 comments on commit 5ce042e

Please sign in to comment.