alt-enums
TypeScript icon, indicating that this package has built-in type declarations

1.0.6 • Public • Published

alt:V Enums

This is not an official package by the altMP team, this is made by the community!

This package contains a few useful enums to be used with TypeScript in alt:V.

How To Use

Firstly, install the package as a dev dependency by running:

npm install -D alt-enums

Next make sure to add this package to your types or typeRoots in your tsconfig.json. Now you can just import the package and use the enums:

import * as AltEnums from "alt-enums";
console.log(AltEnums.WeaponModel.APPistol);

This gets transpiled to:

"use strict";
exports.__esModule = true;
console.log(584646201 /* APPistol */);

Contributing

If there are any helpful enums that could be added feel free to create an issue or even make a pull request.

Credits

Thanks to all Wiki contributors for the enums.
Thanks to Lhoerion for helping me with TypeScript stuff and letting me yoink his TSConfig.

Readme

Keywords

none

Package Sidebar

Install

npm i alt-enums

Weekly Downloads

0

Version

1.0.6

License

MIT

Unpacked Size

48.1 kB

Total Files

4

Last publish

Collaborators

  • leonmrbonnie