#
Install & Upgrade
Hey listen! When you run Rebar for the first time, you won't be able to spawn.
This is simply for server setup, and getting started.
Check out some Plugins to get everything working!
#
1. Programs to Install
Install these programs.
- Git
- Node.js
- pnpm
- MongoDB Server
- Ensure that if you are running it locally, do not set a database password.
- When you move your server to production use something like MongoDB Atlas
If you are having trouble installing pnpm
you can run this command in a Powershell Window
with Admin
Enabled.
set-executionpolicy unrestricted
These are optional but recommended if developing
#
2. Clone the Repository
Open a terminal
and clone
the repository somewhere.
git clone https://github.com/Stuyk/rebar-altv/
#
Navigate into Rebar
cd rebar-altv
#
3a. Windows
#
Install
pnpm install
#
Download Binaries
pnpm binaries
#
Start
pnpm start
Alternatively, development mode can be started with
pnpm dev
If you want to use an even faster development mode, try out hot reloading. This one simply reloads the resource.
pnpm dev:hot
#
3b. Linux
Last installation was tested on Ubuntu 22.04+
#
Install libatomic
sudo apt-get update
sudo apt-get install libatomic1
#
Install
pnpm install
#
Download Binaries
pnpm binaries
#
Grant execute permissions
sudo chmod +x altv-server
sudo chmod +x altv-crash-handler
#
Start
pnpm start:linux
Alternatively, development mode can be started with
pnpm dev:linux
#
3c. Docker
Follow all of the instructions above.
Build with pnpm build:docker
and then run ./altv-server
.
#
Upgrading
#
Auto Upgrade
If you already have Rebar installed simply run the following command:
pnpm rebar:upgrade
#
Manual Upgrade
Download the latest version Rebar
into another folder.
Copy the folders src/main
, webview
, and docs
folder into the main folder of Rebar.
Copy the file package.json
to the main folder of Rebar.
Run pnpm upgrade
and pnpm install
.
Click To Download Latest Source Code
That's it.
#
Webview Development
If you need to develop an interface out of game, you can use pnpm:webview