Skip to content
This repository has been archived by the owner on Jan 31, 2021. It is now read-only.

OOP Implementation of the RAGEMP server events (so you don't have to use [Command] or [ServerEvent] annotations). It allows you to add event handlers and commands at runtime

License

Notifications You must be signed in to change notification settings

robertnisipeanu/ragemp-server-events

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ragemp-server-events

OOP Implementation of the RAGEMP server events (so you don't have to use [Command] or [ServerEvent] annotations). It allows you to add event handlers and commands at runtime.

How to use

  1. Copy /client_packages/cs_packages/CustomCommands.cs to your server client resources (server-files/client_packages/cs_packages).

  2. From folder 'server' import Delegates.cs and Events.cs into your server-side project.

  3. Add using robearded; at the top of the files where you want to use my API.

  4. Use Events.*EventName* += EventHandler; to add an event handler and Events.AddCommand("*commandName*", CommandHandler); to add a command handler.

Added events

  • OnPlayerReady(Client client) -> This event is not available by default on the C# API

If any other events will be custom implemented they will be added here ^

Example

You can find an example inside the 'example' folder.

About

OOP Implementation of the RAGEMP server events (so you don't have to use [Command] or [ServerEvent] annotations). It allows you to add event handlers and commands at runtime

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages