From 1552fe9206608d4806b44b5a21bbf5c9810ca4d3 Mon Sep 17 00:00:00 2001 From: GhzGarage Date: Wed, 13 Oct 2021 20:24:56 -0500 Subject: [PATCH] hotfix(utils.js): Resource Name --- html/utils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/html/utils.js b/html/utils.js index e608831..d8cfd17 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 = window.GetParentResourceName(); + const resourceName = "qb-core"; const rawResp = await fetch(`https://cfx-nui-${resourceName}/${evName}`, { body: JSON.stringify(data),