Skip to content

Commit e71e0ae

Browse files
committed
Force anim stop on "collect reward"
1 parent 768fed8 commit e71e0ae

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

client/client.lua

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -425,6 +425,7 @@ end
425425

426426
Recycling.PickUpPackage.collectReward = function(data)
427427
local Ped = PlayerPedId()
428+
428429
if CollectingReward or not TrollyProp or (#(GetEntityCoords(TrollyProp) - GetEntityCoords(Ped)) > 10.0) then
429430
triggerNotify(nil, "No", "error")
430431
return
@@ -459,6 +460,8 @@ Recycling.PickUpPackage.collectReward = function(data)
459460
end
460461

461462
stopAnim("mp_car_bomb", "car_bomb_mechanic", Ped)
463+
stopAnim("anim@heists@box_carry@", "idle", Ped)
464+
462465
currentToken = triggerCallback(AuthEvent)
463466
addItem("recyclablematerial", math.random(Config.Other.RecycleAmounts["Recycle"].Min, Config.Other.RecycleAmounts["Recycle"].Max))
464467
Recycling.PickUpPackage.PickRandomEntity(data.Trolly)

0 commit comments

Comments
 (0)