Post: PS4 GTA V Native Invoker | GTANatives.dll
03-10-2018, 02:21 PM #1
BISOON
Maggbot timeout!
(adsbygoogle = window.adsbygoogle || []).push({}); Hi everyone

As far as I know, GTAv natives invoker already ported to PS4 and can only be injected into the game process to make it works and to call the native function. to be honest, I don't like to use a mod menu for a couple of reasons ( that's no matter), last week I was working on RPC function that can serve our purpose to call native remotely using desktop tools as we already have on PS3.


Most of you if not all (developers) know the awesome and huge header file which is natives.h by Alexander blade and his team for GTA V, so I just converted all the functions listed in the nativedb to C# You must login or register to view this content.. now c# developers able to call over 2000 natives that rely on the You must login or register to view this content., this will be good for (desktop app developers, testers, etc)

You must login or register to view this content. made on top of the You must login or register to view this content. and it's only valid for GTA v. and the first argument of Call method can be either native hash or the function address.

Also I made the GTANatives dll to make it easier for people, only reference it in your C# project and you're ready to go.



Brief Example:

Enable RPC
    
public static void Enable(PS4API ps4);


Call function (Thread Safe)
    
public static T Call<T>(ulong address, params object[] parameters);


demo that referenced GTANatives.dll
    
PS4API PS4 = new PS4API();
private void btnConnect_Click(object sender, EventArgs e)
{
if (PS4.IsConnected)
return;

btnConnect.ForeColor = PS4.ConnectTarget(txtIp.Text) ? Color.Green : Color.Red;

}

private void btnAttach_Click(object sender, EventArgs e)
{
btnAttach.ForeColor = PS4.AttachProcess() ? Color.Green : Color.Red;
RPC.Enable(PS4);
}
private void btnVehicleSpawn_Click(object sender, EventArgs e)
{
int vehHash = GAMEPLAY.GET_HASH_KEY("adder");
int newVec = 0;
STREAMING.REQUEST_MODEL(vehHash);

if (STREAMING.HAS_MODEL_LOADED(vehHash))
{
int playerPed = PLAYER.PLAYER_PED_ID();
Vector3 myCoords = ENTITY.GET_ENTITY_COORDS(PLAYER.PLAYER_PED_ID(), true);
newVec = VEHICLE.CREATE_VEHICLE(vehHash, myCoords.X, myCoords.Y, myCoords.Z, ENTITY.GET_ENTITY_HEADING(playerPed), true, true);

if (chkIntoVehicle.Checked)
PED.SET_PED_INTO_VEHICLE(playerPed, newVec, -1);
STREAMING.SET_MODEL_AS_NO_LONGER_NEEDED(vehHash);
}
}


More examples included in the project repository (GTA demo)


You must login or register to view this content.



How to use for developers:

  • Inject the You must login or register to view this content. whether 4.05/4.55.
  • Reference GTANatives.dll to your project.
  • Follow the example above or the included demo app.


Credits:

  • Alexander blade
  • 2much4u
  • All of you and who I missed, feel free to notify me.


You must login or register to view this content.

The following user thanked BISOON for this useful post:

ioritree
03-10-2018, 02:40 PM #2
James reborn
This might Load....
PS4 YOUR TIME IS NOW RISE to be the ultimate modding console.
- James reborn
- 2018

That's my motivation keep up the good work BISOON.Magglass1
03-10-2018, 03:19 PM #3
Vicodin10
https://discord.gg/save-wizard
Awesome work, Very usefull.
03-11-2018, 04:05 AM #4
Daniiel Carrera
Can’t trickshot me!
Awesome work man :P
03-12-2018, 04:48 AM #5
iDEXModzYT
At least I can fight
Another great post man .thankz

Copyright © 2024, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo