All Projects → AlternateLife → RageMP.Net

AlternateLife / RageMP.Net

Licence: MIT license
RAGE Multiplayer .NET Core Wrapper

Programming Languages

C#
18002 projects
C++
36643 projects - #6 most used programming language

Projects that are alternatives of or similar to RageMP.Net

cakeMP
An experimental GTA 5 multiplayer mod.
Stars: ✭ 39 (+85.71%)
Mutual labels:  multiplayer, gta5
V
OwlGaming roleplay script for RAGE Multiplayer on GTA 5.
Stars: ✭ 36 (+71.43%)
Mutual labels:  gta5, ragemp
snake-server
Snake-Server is a pure Go implementation of the famous arcade game 🐍
Stars: ✭ 31 (+47.62%)
Mutual labels:  multiplayer
BeatSaberServerBrowser
Beat Saber modification that adds a Server Browser to the Online menu, making it easy to share and join custom multiplayer games.
Stars: ✭ 101 (+380.95%)
Mutual labels:  multiplayer
v2saconv
GTAV > GTASA resource converter. Converts YTD/YDR/YDD/YFT resources to DFF/TXD and generates COL files.
Stars: ✭ 68 (+223.81%)
Mutual labels:  gta5
asciiarena
Terminal multiplayer deathmatch game
Stars: ✭ 34 (+61.9%)
Mutual labels:  multiplayer
react-native-multiplayer-starter
Your next multiplayer game starter using react-native
Stars: ✭ 27 (+28.57%)
Mutual labels:  multiplayer
EuNet
Peer to peer network solution for multiplayer games.
Stars: ✭ 109 (+419.05%)
Mutual labels:  multiplayer
dots
P2P Dots & Boxes game with WebRTC & WebTorrent
Stars: ✭ 56 (+166.67%)
Mutual labels:  multiplayer
altv-typescript
A Typescript Boilerplate for alt:V with simple setup and usage.
Stars: ✭ 32 (+52.38%)
Mutual labels:  ragemp
AM2R-Multitroid
Source code for AM2R 1.5.2+ Multitroid, free of copyrighted assets and trademarks.
Stars: ✭ 46 (+119.05%)
Mutual labels:  multiplayer
NetMauMau
Server for the popular card game Mau Mau (similar to UNO®)
Stars: ✭ 16 (-23.81%)
Mutual labels:  multiplayer
tomenet
TomeNET is an online multiplayer roguelike role-playing game
Stars: ✭ 59 (+180.95%)
Mutual labels:  multiplayer
deerportal
Full of the diamonds 💎 board game driven by a 🦌 Deer 🦌 god and classical elements 🔥 💦 💨 🌍
Stars: ✭ 31 (+47.62%)
Mutual labels:  multiplayer
liblast
A libre multiplayer FPS game created in Godot Engine
Stars: ✭ 92 (+338.1%)
Mutual labels:  multiplayer
GTAV-Self-driving-car
Self driving car in GTAV with Deep Learning
Stars: ✭ 15 (-28.57%)
Mutual labels:  gta5
sdk-for-unity-vr-starter-project
[Deprecated] SpatialOS SDK for Unity Virtual Reality Starter Project
Stars: ✭ 43 (+104.76%)
Mutual labels:  multiplayer
v-besttorso
No description or website provided.
Stars: ✭ 32 (+52.38%)
Mutual labels:  gta5
saltychat-altv
AltV implementation of Salty Chat (TeamSpeak 3 based Voice Plugin) using Typescript & C#
Stars: ✭ 20 (-4.76%)
Mutual labels:  gta5
Unity-Firebase-Multiplayer-Example
Multiplayer and Matchmaking system using Firebase Realtime Database in Unity
Stars: ✭ 32 (+52.38%)
Mutual labels:  multiplayer

AlternateLife.RageMP.Net

Development Build status (Windows, Linux) NuGet Docker Pulls

AlternateLife.RageMP.Net is an alternative server-side .NET Core 2.2 implementation for RAGE Multiplayer. This library targets more advanced developers which are more familiar with the RAGE Multiplayer server API and its features. It offers a mostly asynchronous API to interact with, so a thread-safe access to the native API is always guaranteed.

Download & Installation

NuGet

PM> Install-Package AlternateLife.RageMP.Net

All releases are available for download in our Releases page. You can also find all instructions on how to get started in our installation guide.

Documentation

You can find the latest AlternateLife.RageMP.Net documentation here.

Example

This is a sneak peek on how to create the Main-class, so the server can find your entry point where to start from.

using System.Threading.Tasks;
using AlternateLife.RageMP.Net.Enums;
using AlternateLife.RageMP.Net.Interfaces;
using AlternateLife.RageMP.Net.Scripting;

namespace AlternateLife.RageMP.Net.Example
{
    public class Main : IResource
    {
        public Main()
        {
            MP.Events.PlayerJoin += OnPlayerJoin;
            MP.Events.PlayerQuit += OnPlayerQuit;

            MP.Events.Add("PLAYER_INTERACT", OnPlayerInteract);
        }

        public Task OnStartAsync()
        {
            return Task.CompletedTask;
        }

        public Task OnStopAsync()
        {
            return Task.CompletedTask;
        }

        private Task OnPlayerJoin(IPlayer player)
        {
            MP.Logger.Info($"Player {player.SocialClubName} ({player.Ip}) joined");

            return Task.CompletedTask;
        }

        private void OnPlayerQuit(IPlayer player, DisconnectReason type, string reason)
        {
            MP.Logger.Info($"Player {player.SocialClubName} ({player.Ip}) left the server: {type.ToString()} ({reason})");
        }

        private Task OnPlayerInteract(IPlayer player, string eventname, object[] arguments)
        {
            var health = player.Health;

            health += 5;
            if (health > 100)
            {
                health = 100;
            }

            player.Health = health;

            return Task.CompletedTask;
        }
    }
}

Docker

On DockerHub is an image containing the RAGE Multiplayer Linux server with AlternateLife.RageMP.Net already preinstalled. You can find more documentation there.

See also

MIT License

Copyright (c) 2018 Alternate-Life

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].