From db68fceccc69f69866e4b316837d1b80e24c15b6 Mon Sep 17 00:00:00 2001 From: Kenshin13 <63159154+Kenshiin13@users.noreply.github.com> Date: Sun, 15 Dec 2024 17:56:12 +0100 Subject: [PATCH] fix(es_extended/shared/functions): invokingResource not being displayed --- [core]/es_extended/shared/functions.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/[core]/es_extended/shared/functions.lua b/[core]/es_extended/shared/functions.lua index 52e3030a..184def1b 100644 --- a/[core]/es_extended/shared/functions.lua +++ b/[core]/es_extended/shared/functions.lua @@ -192,6 +192,7 @@ function ESX.Await(conditionFunc, errorMessage, timeoutMs) ESX.AssertType(errorMessage, "string", "errorMessage should be a string.") end + local invokingResource = GetInvokingResource() local startTimeMs = GetGameTimer() while GetGameTimer() - startTimeMs < timeoutMs do local result = conditionFunc() @@ -204,7 +205,7 @@ function ESX.Await(conditionFunc, errorMessage, timeoutMs) end if errorMessage then - error(("[%s] -> %s"):format(GetInvokingResource(), errorMessage)) + error(("[%s] -> %s"):format(invokingResource, errorMessage)) end return false