Remember to π this Github if you π it.
Open Roleplay is a base gamemode for Roleplay servers. It will include the ideal functionality to get the base ground work for a roleplay gamemode started. THIS IS A WORK IN PROGRESS AND IS NOT COMPLETE IN ANY WAY.
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.
Installation:
The file structure below is the IDEAL and required structure you must use for this game mode. You must follow it exactly.
You're going to need these additional repositories:
You're going to need to install a base version of PostgresSQL.
altVServerFolder/
βββ resources/
βββ chat/
| βββ index.mjs
| βββ client.mjs
| βββ resource.cfg
| βββ html/
βββ orp/
| βββ server/
| βββ client/
| βββ resource.cfg
βββ postgres-wrapper/
| βββ client.mjs
| βββ database.mjs
| βββ resource.cfgImportant You can configure your database connection inside of:
Change the 'text' inside of SQL(<here>)
resources/orp/server/server.mjs
Example connection string:
postgresql://postgres:abc123@localhost:5432/altv
After installing the above; if you don't have a package.json in your main server directory where your .exe is you're going to need to do the following:
npm init
Then press enter a bunch of times until its done stepping you through. After you need to install the following packages:
npm install --save typeorm
npm install --save mysql
npm install --save pg
npm install --save sjcl