project-error/fivem-react-boilerplate-lua ? reverse-engineered prompt
Reverse engineered prompt
Build me a FiveM NUI starter resource with a React app in TypeScript on the UI side and Lua for the game side.
I want it set up so I can run it in the browser for normal development, then also use it in game with a workflow that only needs a resource restart when I change the UI. Please include the basic message passing between Lua and React, a simple way to send data from Lua to the UI, and a way for the UI to call back into the game scripts. It would be great to have a small debug setup too, so I can mock game events in the browser while building.
Keep it simple, clean, and easy to extend later, since this is meant to be a boilerplate I can use for other FiveM projects. If you need to check any current docs, feel free to look them up online.