dirk-cfx-react 1.0.60 → 1.0.62
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/hooks/index.cjs +2 -2
- package/dist/hooks/index.cjs.map +1 -1
- package/dist/hooks/index.d.cts +5 -1
- package/dist/hooks/index.d.ts +5 -1
- package/dist/hooks/index.js +2 -2
- package/dist/hooks/index.js.map +1 -1
- package/dist/index.cjs +2 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2410,9 +2410,9 @@ function createScriptSettings(defaultValue) {
|
|
|
2410
2410
|
store.setState((prev) => ({ ...prev, ...newSettings }));
|
|
2411
2411
|
});
|
|
2412
2412
|
};
|
|
2413
|
-
const updateScriptSettings = (newSettings) => {
|
|
2413
|
+
const updateScriptSettings = async (newSettings) => {
|
|
2414
2414
|
store.setState((prev) => ({ ...prev, ...newSettings }));
|
|
2415
|
-
fetchNui("UPDATE_SCRIPT_SETTINGS",
|
|
2415
|
+
return await fetchNui("UPDATE_SCRIPT_SETTINGS", newSettings);
|
|
2416
2416
|
};
|
|
2417
2417
|
return { store, updateScriptSettings, useScriptSettingHooks };
|
|
2418
2418
|
}
|