altmp / altv-client-js

Official clientside JavaScript runtime for alt:V
6 stars 7 forks source link

Add generic event handler #53

Closed LeonMrBonnie closed 3 years ago

LeonMrBonnie commented 3 years ago

Example:

alt.on((name, ...args) => {});
alt.onServer((name, ...args) => {});

Related to https://github.com/altmp/altv-js-module/pull/36