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/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", store.getState());
2415
+ return await fetchNui("UPDATE_SCRIPT_SETTINGS", newSettings);
2416
2416
  };
2417
2417
  return { store, updateScriptSettings, useScriptSettingHooks };
2418
2418
  }