add events.reset

This commit is contained in:
MihailRis
2024-11-01 17:18:12 +03:00
parent ac6084f904
commit e762cf9b23
4 changed files with 22 additions and 1 deletions
+6
View File
@@ -145,6 +145,12 @@ events.on(code: str, handler: function)
Adds an event handler by its code, not limited to the standard ones.
```lua
events.reset(code: str, [optional] handler: function)
```
Removes the event, adding a handler if specified.
```lua
events.emit(code: str, args...) -> bool
```