Svelte5 Fivem
This boilerplate sets up a Svelte 5 frontend for FiveM NUI resources on the CfxLua runtime, bundled with TailwindCSS 3 and ready-to-use utilities for visibility management and client-web communication.
It supplies helpers such as useNuiEvent for listening to SendNUIMessage calls, fetchNui for triggering server callbacks, debugData for browser mocking, and a VisibilityStore that responds to the ESC key. Live preview is supported by pointing ui_page at the Vite dev server during development.
- Visibility toggling with ESC key support
- useNuiEvent listener for game messages
- fetchNui wrapper for NUI callbacks
- debugData for browser-based event mocking
- Live reload via Vite dev server