From b4c295f6ba14657adb054d2f5ec43aa7ee8e07be Mon Sep 17 00:00:00 2001 From: Man1C Date: Sat, 10 Feb 2024 22:03:12 +0000 Subject: [PATCH] Update functions.lua forgot to remove the comment for local invoked = GetInvokingResource() and remove the hardcore variable --- client/functions.lua | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/client/functions.lua b/client/functions.lua index 7f02442..57599b6 100644 --- a/client/functions.lua +++ b/client/functions.lua @@ -58,9 +58,8 @@ end --- @param duration number - The duration of the animation in milliseconds. -1 will play the animation indefinitely --- @param upperbodyOnly boolean - If true, the animation will only affect the upper body of the ped --- @return number - The timestamp indicating when the animation concluded. For animations set to loop indefinitely, this will still return the maximum duration of the animation. -function QBCore.Functions.PlayAnim(animDict, animName, duration, upperbodyOnly) - -- local invoked = GetInvokingResource() - local invoked = 'runningAnim' +function QBCore.Functions.PlayAnim(animDict, animName, upperbodyOnly, duration) + local invoked = GetInvokingResource() local animPromise = promise.new() if type(animDict) ~= 'string' or type(animName) ~= 'string' then animPromise:reject(invoked..' :^1 Wrong type for animDict or animName')