RAGE MP Server Boilerplate
A boilerplate for RAGE MP with MongoDB and Typescript!
- Clone or download repository.
- Copy RAGE MP server-files files and paste here.
- Open terminal and:
- Type
yarn
. cp .env.example .env
- Edit .env with your configs.
- Type
yarn start
- Type
- Run
tsc -w
insrc/server
andsrc/client
folders - Run
yarn watch
to make server restart with every change - Run
yarn lint
to lint the code - Run
yarn build
to compile bothserver
,client
andviews
Gameplay code should be placed within modules (server) and modules (client), after creating the module you need to add to the modules array in modules entry-point.
You can set the language of the gamemode changing the .env file, if your language is not here you can create it here and here and import them in the lang.loader.
Contributions are greatly appreciated. Please fork this repository and open a pull request to add snippets, make grammar tweaks, etc.