From b13812dac213c849b6456d9e5526f10396f81261 Mon Sep 17 00:00:00 2001 From: Rashintawak Date: Tue, 2 Jun 2026 17:50:04 +0200 Subject: [PATCH] Better solution for exit animation A small improvement to avoid unnecessary movement in the lower body when exiting the animation. Allowing them to sit and have their hands up, for example. --- client/handsup.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/handsup.lua b/client/handsup.lua index 5c2faaea..da5dfb3a 100644 --- a/client/handsup.lua +++ b/client/handsup.lua @@ -14,7 +14,7 @@ RegisterCommand(Config.HandsUp.command, function() TaskPlayAnim(ped, 'missminuteman_1ig_2', 'handsup_base', 8.0, 8.0, -1, 50, 0, false, false, false) exports['qb-smallresources']:addDisableControls(Config.HandsUp.controls) else - ClearPedTasks(ped) + StopAnimTask(ped, 'missminuteman_1ig_2', 'handsup_base', 8.0) exports['qb-smallresources']:removeDisableControls(Config.HandsUp.controls) end end, false)