Both Sides
Learn more about the available Decorators for both sides
Module Decorator
The module decorator provides a simple way to load your components and other modules
It is a good practice to split out your gamemode in modules and components to keep your file structured, clean and readable
Basic Event Decorator
Every basic event decorator has an optional parameter for the eventname If the eventname is not provided within the parameter, the name of the decorated method will be used as the eventname.
Command Decorator
Creating console commands has never been easier. You don't need to create them or listen to specific events. Only this decorator is needed.
Avoid using multiple commands with same name. Only the first registered command will be handled.
Basic Usage
The first parameter is optional. If the parameter is not provided, the method name will be used as command name.
Example
This example shows the simple usage of this awesome decorator. The way they work is the same on both sides. This example shows a simple vehicle create command on server side.
Last updated