Remember to ๐ this Github if you ๐ it.
Open Roleplay is a base gamemode for Roleplay servers. Open Roleplay is the base framework for my server: alt:V Life. Open Roleplay has its own Official Discord.
If you'd like to remove the splash screens at any point; we can negotiate at a price. However, you will be responsible for removing them and not me. Otherwise, just leave the splash screens alone. This is a free framework and the least you can do is give credit. You are also required to put ORP in your gamemode for your alt:V server configuration. You did not write this gamemode; and it is not your custom gamemode. Put credit where credit is due.
You can find a full list of features and the roadmap here.
IMPORTANT If you are not a developer; this may not be the project for you. There is some general configuration that needs to be done and understanding code is important.
I will not be providing direct support for this gamemode; if you have an issue or come across actual functionality issues please raise an issue in the issues tab. Otherwise; additional help can be found by subscribing through my twitch page and then joining the Discord Group
// General
Tab --------> Press to Toggle Cursor
Tab + RMB -> Show Context Menu on User
Tab + LMB -> Select Context Option
T ----------> Open Chat
F1 ---------> Help Menu
-
Install version v11.5 of PostgresSQL for either windows, linux, or whatever OS you're running.
-
Once installed you need to create a username and password for your database; and create a database called 'altv' or something else if you know what you're doing. PAY ATTENTION HERE YOU'LL NEED THIS INFO
Creating on Windows with pgAdmin4
Where to navigate:
https://i.imgur.com/FBBeMTt.png
Postgres is the username for this database; and altv is the name:
https://i.imgur.com/FaEmnvg.png
After; it should be running automatically in your services on windows. You can always restart your database through your Task Manager.
https://i.imgur.com/6pA8PWB.png
Creating on Linux with Terminal ( UBUNTU 18.04 (Don't use 16.04 it's a pain in the ass.) )
-
Follow these instructions up to Step 3: Installing Postgres on Ubuntu
-
Type:
su - postgres
-
Type:
psql
-
Type:
CREATE DATABASE altv;
-
If all is well you will see
CREATE DATABASE
or something similar replied. -
Type:
CREATE USER stuyk WITH ENCRYPTED PASSWORD 'abc123';
-
If all is well you will see
CREATE ROLE
replied. -
We now have a user called
stuyk
with a password ofabc123
. We need to assign to db. -
Type:
GRANT ALL PRIVILEGES ON DATABASE altv TO stuyk;
-
If all is well you wil see
GRANT
replied. -
Type:
\q
to exit. -
Type:
sudo -u root
-
This will bring you back to your root account.
-
Now follow the rest of the steps below.
-
Open a Power Shell or Command Prompt or Terminal
-
Download the latest version of this resource (100% Recommend CLONING the REPO with GIT).
-
After CLONING, CD into the repo through the same command prompt.
-
Open a command prompt and run
npm run orp
. FOLLOW THE INSTRUCTIONS CAREFULLY ON PROMPT. -
When you get to the Discord Setup; make sure you hit 'yes' if this is a new server.
Please Create a Discord Application for your Login System.
Please Visit: https://discordapp.com/developers/applications/
-
Inside of page you need to create a Discord Application and turn it into a bot and copy the bot secret.
-
You also MUST add this bot to your own server.
- Hit New Application
- Set the Name for Your Bot / Application
- Click on the
Bot
tab. - Transform your Application into a bot.
- Name your bot.
- Tick
Administrator
or justSend/Read Messages
- Copy the bots secret token.
- Make sure the bot is not public.
- Navigate to oAuth2 tab. Tick
bot
in scopes. - Copy the URL inside of scopes. Paste in browser.
- Add the bot to your designated Discord.
-
Make sure to save changes.
-
Run
altv-server.exe
or./start.sh
. If you're on Linux you may need to set permission foraltv-server
. -
Join your server.
-
Copy the Code
-
PM the Bot you setup with
!login <code>