Mcfloy Posted January 15, 2018 Posted January 15, 2018 (edited) 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 January 21, 2018 by Mcfloy Fix link 2 1
Mcfloy Posted January 27, 2018 Author Posted January 27, 2018 Hashes are inside the index.js file. For more informations you can search "gta 1.42 translation table".
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now