Jump to content

1.42 Natives List


Mcfloy

Recommended Posts

For those you want to use the natives functions here's a file that will help you.

Link : https://github.com/Mcfloy/natives

To use it simply add it on your folder and type :

const NATIVES = require('folder/natives');

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

 

(A little example to show you how to get infinite ammo)

var 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);

 

Edited by Mcfloy
Fix link
  • Like 2
  • Mask 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...