Skip to content

A startup rp script to make your way into making a rp server easier!

License

Notifications You must be signed in to change notification settings

shr0x/ragemp-rp-gamemode

Repository files navigation

RAGEMP RP GAMEMODE

A RAGE MULTIPLAYER Roleplay game mode.

Introduction

This game mode is still a work in progress, plenty features are planned to be added and a proper roadmap will be published later on.

Built in

Client Side Server Side Frontend
Webpack Typescript React
Typescript PostgreSQL Vite
TypeORM MobX
Webpack Typescript

Credits

Thanks to rootcause for Command Registry & v-bettertorso

Current Features

  • Account system (Login/Register).
  • Character System (3 Available slots to create)
  • Inventory system.
  • HUD & Player data.
  • Notification system
  • Chat System
  • Command system
  • Radial Interactive Menu

Getting started with server development

Introduction:

Database setup:
This code requires you to have PostgreSQL installed on your machine, read more.
After installing posgree, connect to your database using PGAdmin or HeidiSQL and create a new database by executing a query like:

CREATE DATABASE mydb;

After creating a database successfully, head back to the server files and edit .env by describing the database connection details there. Once you're setup with that, simply start the server, and the TypeORM will start creating the required database tables on its own (see Database.module.ts for deeper info)

Code structure

ragemp-rp-framework
├───config #contains webpack configuration files
├───frontend
│   └───src
│       ├───assets #contains assets such as page images or videos
│       ├───events #contains page events which can be called from the backend
│       ├───pages #contains pages
│       ├───stores #contains temporary stores
│       ├───styles #contains global styling
│       └───utils #contains useful code methods
│
├───source #contains backend code
│   ├───client #contains client-side code
│   ├───server #contains server-side code
│   └───shared #contains shared data between server and client
│
└───.env #contains database connection details

Starting the server in development mode:
Client side:
.vid
Server side
.vid

By downloading this gamemode you agree to the LICENSE.