From 756e6b83d8189fc1143693dd4f301d8171461a5a Mon Sep 17 00:00:00 2001 From: hyprell <75884474+hyprell@users.noreply.github.com> Date: Sun, 15 May 2022 21:16:37 +0300 Subject: [PATCH] Update progress.lua Scenario start animation plays no matter if playEnter is true or false --- resource/interface/client/progress.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resource/interface/client/progress.lua b/resource/interface/client/progress.lua index 4109a61..992b3ba 100644 --- a/resource/interface/client/progress.lua +++ b/resource/interface/client/progress.lua @@ -20,7 +20,7 @@ local function startProgress(data) TaskPlayAnim(cache.ped, data.anim.dict, data.anim.clip, data.anim.blendIn or 3.0, data.anim.blendOut or 1.0, data.anim.duration or -1, data.anim.flag or 49, data.anim.playbackRate or 0, data.anim.lockX, data.anim.lockY, data.anim.lockZ) data.anim = true elseif data.anim.scenario then - TaskStartScenarioInPlace(cache.ped, data.anim.scenario, 0, data.anim.playEnter or true) + TaskStartScenarioInPlace(cache.ped, data.anim.scenario, 0, data.anim.playEnter ~= nil and data.anim.playEnter or true) data.anim = true end end