From da8da214e4262a0c558c3a77b1b702826fc3ca07 Mon Sep 17 00:00:00 2001 From: Kakarot <57848836+GhzGarage@users.noreply.github.com> Date: Wed, 13 Oct 2021 20:42:39 -0500 Subject: [PATCH] Update utils.js --- html/utils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/html/utils.js b/html/utils.js index 46d84f1..bf2fb8c 100644 --- a/html/utils.js +++ b/html/utils.js @@ -13,7 +13,7 @@ export const isEnvBrowser = () => !window.invokeNative; export const fetchNui = async (evName, data, mockData = null) => { if (isEnvBrowser()) return mockData; - const resourceName = "qb-core"; + const resourceName = window.GetParentResourceName(); const rawResp = await fetch(`https://${resourceName}/${evName}`, { body: JSON.stringify(data),