GTA V Role Play playground for alt:V server
[ altv.mp | Thanks Stuyk ]
⭐ This repository if you found it useful!
alt:V has a lot of Boilerplates for TypeScript. However, they have one feature missing. They fail to create an environment where you can support multiple resource compilations. This boilerplate aims to fix that and allow multiple resources to be compiled at once and all your mods.
- Full alt:V Type Support for VSCode
- Built in script auto-compilation through
npm run watch
. - Built in auto-copy for non-typescript files.
- Built in handling of multiple resources for compilation.
- Easily expandable resource directory.
- altv-pkg support for auto-downloading alt:V Server Binaries.
- Prettier Configuration for code formatting.
Login to github packages. For password use your github access token or create new one with read packages permission
npm login --scope=@durtyfree --registry=https://npm.pkg.github.com
Install the node modules
npm install
Download Server Files
npm run update
Build Typescript Files
npm run build
Use any of the following commands to start it.
Based on your environment.
Linux | Windows (CMD) | Windows (Powershell) |
---|---|---|
./start.sh |
altv-server.exe |
./altv-server.exe |
If you wish to work your game-mode simply open up VSCode. Open up a terminal and split it (Ctrl + Shift + 5
).
Run the following in a terminal:
npm run watch
Run your server in another terminal:
Linux | Windows (CMD) | Windows (Powershell) |
---|---|---|
./start.sh |
altv-server.exe |
./altv-server.exe |
ctrl + c
to kill your server.
Directly on running server terminal type reload RESOURCE_NAME
to reload module.
This folder should be used to write your typescript based game modes.
This folder should be used to copy car mods, mlos, etc. to your resources folder after compilation.
Simply add your modded resources, resource dependencies, etc. into this folder.
The build script will handle the rest.
-
E
Raises his hand and whistles. If you are close to the vehicle - opens the door. If you are in the vehicle opens a window. If you are near the trunk / hood opens it -
F
Sits in the driver's seat. Do not turn off the engine by exiting and holding theF
key -
G
Sits as a passenger in the nearest seat -
B
Pointing finger -
X
Raises his hands (surrenders) -
C
Hold to Crouch