This is a template resource for using typescript to lua within FiveM.
You can write your resource in typescript, for it to later be built into lua
- Node
- Basic Typescript & coding knowledge
- A FiveM server to run the result on
If you encounter an issue with our template, simply open an issue here
We gladly accept all contributions, contributing can be done via forking this repo and then creating a PR.
To set this up, simply run npm install
in the root of this repository, as well
as the ui
folder. That will install all the node_modules for you.
Building for production can be done using npm run build
.
Using it in the root folder would build all the client
/server
scripts,
Whilst using it in the ui
folder would build the actual ui files.
Setting up a "dev server" / listener can be done by using npm run dev
.
Using this command in the root folder will run a dev server for the actual
client
/server
files.
Using this in the ui
folder will create a local dev-server for the UI, just
make sure to change the ui_page