dirk-cfx-react 1.0.59 → 1.0.60
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 +5 -1
- package/dist/hooks/index.cjs.map +1 -1
- package/dist/hooks/index.d.cts +1 -0
- package/dist/hooks/index.d.ts +1 -0
- package/dist/hooks/index.js +5 -1
- package/dist/hooks/index.js.map +1 -1
- package/dist/index.cjs +5 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +5 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2410,7 +2410,11 @@ function createScriptSettings(defaultValue) {
|
|
|
2410
2410
|
store.setState((prev) => ({ ...prev, ...newSettings }));
|
|
2411
2411
|
});
|
|
2412
2412
|
};
|
|
2413
|
-
|
|
2413
|
+
const updateScriptSettings = (newSettings) => {
|
|
2414
|
+
store.setState((prev) => ({ ...prev, ...newSettings }));
|
|
2415
|
+
fetchNui("UPDATE_SCRIPT_SETTINGS", store.getState());
|
|
2416
|
+
};
|
|
2417
|
+
return { store, updateScriptSettings, useScriptSettingHooks };
|
|
2414
2418
|
}
|
|
2415
2419
|
|
|
2416
2420
|
export { BorderedIcon, Counter, DirkProvider, FloatingParticles, FormProvider, InfoBox, InputContainer, LevelBanner, LevelPanel, ModalContext, ModalProvider, MotionFlex, MotionIcon, MotionImage, MotionText, NavBar, NavigationContext, NavigationProvider, PromptModal, SegmentedControl, SegmentedProgress, Title, TornEdgeSVGFilter, colorWithAlpha, copyToClipboard, createFormStore, createScriptSettings, createSkill, fetchNui, gameToMap, getImageShape, initialFetches, internalEvent, isEnvBrowser, isProfanity, latPr100, locale, localeStore, mapCenter, mapToGame, noop, numberToRoman, openLink, registerInitialFetch, runFetches, splitFAString, updatePresignedURL, uploadImage, useAutoFetcher, useForm, useModal, useModalActions, useNavigation, useNavigationStore, useNuiEvent, useProfanityStore, useSettings, useTornEdges };
|