altmp / altv-js-module

JS module for alt:V Multiplayer. Powered by NodeJS & v8
MIT License
55 stars 35 forks source link

shared: Add class-based events utils #220

Closed xxshady closed 2 years ago

xxshady commented 2 years ago
const localEvent = new alt.Utils.LocalEvent("test", (...args) => {})
localEvent.destroy()
const genericLocalEvent = new alt.Utils.GenericLocalEvent((eventName, ...args) => {})
genericLocalEvent.destroy()
LeonMrBonnie commented 2 years ago

Let's not get too overboard with the "everything has to be OOP" mindset

xxshady commented 2 years ago

ok