Svelte Template

screenshot of Svelte Template

Template for Svelte, TS, Taiwind and FiveM

Overview:

Svelte-Template is a template for building Svelte applications with TypeScript, Tailwind CSS, and FiveM. It offers various features such as an Always Listener Event Component, Debug Browser Component, SendNUI functionality, and a Visibility Provider. This template allows developers to run a local host in the game and trigger callbacks in scripts.

Features:

  • Always Listener Event Component: A component that enables listening to the ReceiveNUI event.
  • Debug Browser Component: A component that allows developers to include mock SendNUIMessage events while developing the user interface inside the browser.
  • SendNUI: A functionality to send actions and data to RegisterNUICallback() inside client files. It also has a third parameter for debugReturn for browser development.
  • VISIBILITY Provider: This provider can be toggled with the setVisible method, where the data is a boolean value.

Summary:

Svelte-Template is a comprehensive template for building Svelte applications with TypeScript, Tailwind CSS, and FiveM. It provides several useful features such as an Always Listener Event Component, Debug Browser Component, SendNUI functionality, and a Visibility Provider. By following the installation guide, developers can quickly set up and start developing their Svelte applications using this template.