DirkScripts Logo

Login With FiveM

Login

⚛️ Dirk CFX React

dirk-cfx-react is the shared front-end foundation for all DirkScripts NUI panels. It provides everything needed to build admin interfaces, settings panels, and in-game UIs without duplicating code across resources.


What's Included

  • Settings Panel — Full admin UI with sidebar nav, undo/redo, save/discard, change history, JSON editor, and reset to defaults.
  • Form System — Deep nested form state management with undo/redo history, async validation, dirty tracking, and Zod schema support.
  • Script Config Integration — Zustand-based store factory that connects to dirk_lib's scriptConfig module via NUI callbacks.
  • Theme System — Pre-configured Mantine dark theme with VH-based sizing, global input styles, and custom colour palettes.
  • 20+ Components — Modals, keybind inputs, item selectors, level panels, animated buttons, and more.
  • NUI UtilitiesfetchNui, useNuiEvent, locale system, item image helpers.
  • DirkProvider — Drop-in root provider that handles theme setup, settings fetch, font loading, and error boundaries.

Key Features

CategoryExports
Admin UISettingsPanel, AdminPageTitle, AsyncSaveButton
FormsuseForm, useFormField, useFormFields, useFormActions, useFormError, FormProvider
SettingscreateScriptConfig, getScriptConfigInstance
InputsInputContainer, SelectItem, FiveMKeyBindInput
ModalsModal, ConfirmModal, PromptModal, ModalStore
LayoutBorderedIcon, Counter, FloatingParticles, InfoBox, Navigation, Title
LevelsLevelBanner, LevelPanel, createSkill
MotionMotionFlex, SegmentedControl, SegmentedProgress
HooksuseNuiEvent, useAudio, useTornEdges
UtilsfetchNui, locale, colorWithAlpha, useSettings, useItems
ProvidersDirkProvider

Peer Dependencies

dirk-cfx-react expects these to be installed in your consuming project:

PackageVersion
react>= 19.2.0
@mantine/core>= 8.3.9
framer-motion>= 12.23.24
zustand>= 5.0.3

Copyright © 2026 DirkScripts.

Not affiliated with or endorsed by Rockstar North, Take-Two Interactive, or any other rights holders. FiveM is a copyright and registered trademark of Take-Two Interactive Software, Inc.
Our checkout system is provided by Tebex Limited, who manage payment processing, product delivery, and billing support. Prices shown in currencies other than GBP are approximate conversions updated daily. All purchases are processed in GBP, so the final amount charged may vary depending on your bank or payment provider’s exchange rate.