1.42.0 • Published 6 years ago

natives-ragemp v1.42.0

Weekly downloads
2
License
MIT
Repository
github
Last release
6 years ago

RAGEMP Client Natives

NPM version

This is a util package providing hash lists of GTA V's natives to use on the client side of RAGE MP scripts.

Install

npm install --save natives-ragemp

Example

A little example to show you how to get infinite ammo:

const NATIVES = require('natives-ragemp');

const weaponHash = NATIVES.WEAPON.GET_SELECTED_PED_WEAPON(player.handle);
mp.game.graphics.notify(`Result: ${weaponHash}`);
NATIVES.WEAPON.SET_PED_INFINITE_AMMO(player.handle, true, weaponHash);

Roadmap

Only JS for now, I'll probably do a TypeScript one based on the work of CocaColaBear or Pet-Platoon.