Event Service
Learn more about the Eventservice
Introduction
Sending events is a key feature for each gamemode. This service will help you archive this goal.
Keep in mind, our event service is a wrapper around the alt:V event system. If you want, you can use it the way alt:V provides it with alt.emit, alt.emitServer and so on. In a clean code scenario, it would be better to use the eventService to keep your code clean and structured.
Base Usage
We use the same method signature as alt:V. If you are already familiar with it, then it will be very easy for you to use this service.
Side Notes
The event service also has methods for retrieving events. If you're using the decorators, there is no need to use them. For the sake of completeness, they're included.
Net to know
We provide some other methods for offServer and off Eventlistener.
Last updated