{"repo":"project-error/fivem-react-boilerplate-lua","free":true,"listed":false,"github":"https://github.com/project-error/fivem-react-boilerplate-lua","clone":"git clone https://github.com/project-error/fivem-react-boilerplate-lua.git","description":"Basic Lua & React (TypeScript) boilerplate for FiveM","language":"TypeScript","stars":251,"topics":["fivem","react","gta5","cfx","boilerplate","typescript"],"license":"MIT","category":"saas-starters-boilerplates","readme_excerpt":"FiveM React and Lua Boilerplate A simple and extendable React (TypeScript) boilerplate designed around the Lua ScRT This repository is a basic boilerplate for getting started with React in NUI. It contains several helpful utilities and is bootstrapped using create-react-app . It is for both browser and in-game based development workflows. For in-game workflows, Utilizing craco to override CRA, we can have hot builds that just require a resource restart instead of a full production build This version of the boilerplate is meant for the CfxLua runtime. Requirements Node v10.6 Yarn (Preferred but not required) A basic understanding of the modern web development workflow. If you don't know this yet, React might not be for you just yet. Getting Started First clone the repository or use the template option and place it within your resources folder Installation The boilerplate was made using yarn but is still compatible with npm . Install dependencies by navigating to the web folder within a terminal of your choice and type npm i or yarn . Features This boilerplate comes with some utilities and examples to work off of. Lua Utils SendReactMessage This is a small wrapper for dispatching NUI messages. This is designed to be used with the useNuiEvent React hook. Signature Usage debugPrint A debug printing utility that is dependent on a convar, if the convar is set this will print out to the console. The convar is dependent on the name given to the resource. It follows this format YOUR R","default_branch":null,"files":null,"tree":[],"storefront":"/r/project-error","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/project-error/fivem-react-boilerplate-lua/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}