hotfix(utils.js): Resource Name

This commit is contained in:
GhzGarage
2021-10-13 20:24:56 -05:00
parent 6d9162e511
commit 1552fe9206
+1 -1
View File
@@ -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),