1.0.0 • Published 6 months ago
altv-client-package v1.0.0
altv-client-package
An NPM package for alt:V client-side utilities. Compatible with alt:V version 16.2.43-rc.5.
Features
- Logs when the module is loaded.
- Key listener setup for custom key-based actions.
- Custom message logging.
- Includes a workaround for
GetModuleNamespace
issues in the V8 engine.
Installation
Install the package via NPM:
npm install altv-client-package
Usage
Import and use the package in your alt:V client resource:
import { logModuleLoaded, setupKeyListener, greet } from 'altv-client-package';
// Log when the module is loaded
logModuleLoaded();
// Greet the player
greet('Player');
// Setup a key listener for the F5 key
setupKeyListener(0x74, () => {
alt.log('F5 key was pressed!');
});
1.0.0
6 months ago