Using Pointer Nativ...
 
Notifications
Clear all

Using Pointer Natives In RPC/C#

Page 1 / 2

KranK
Posts: 336
Topic starter
(@KranK)
Reputable Member
Joined: 9 years ago

Hey Rival Gamers

As many of you who code RPC may noticed there are Natives that used by Pointer Mostly they are Bool Natives that writes what ever to Pointer if Bool returned as True

The point is pointers are usual made for C/C++
there is way to use pointers in C# using Unsafe code but this is not good and will not work with these natives

i will show you how to use them in RPC/C# codding

Pointer Natives Example

1. GET_GROUND_Z_FOR_3D_COORD // Has Float Pointer
2. GET_PED_LAST_WEAPON_IMPACT_COORD Has Vector3 Pointer

There are more natives like this but you will get the point

Tutorial Float Pointer:
Float Pointer using GET_GROUND_Z_FOR_3D_COORD Native

[HIDE][html]
uint Pointer_Adress = 0x10070000; // just free space in Ps3 Ram/Memory we use to write pointer return to

if (Hook.Call("GET_GROUND_Z_FOR_3D_COORD", coords, Pointer_Adress) == true)
{
float Ground_Z = PS3.Extension.ReadFloat(Ground_Z_Pointer_Adress); // thats how we read pointer Return 😛
}

Thats it for Float pointer
[/html][/HIDE]

Will Be adding Vector3 Pointer TUTORIAL soon as i get time to figure it out

Reply
Name of the Video Game, and any other Tags
5 Replies
Posts: 0
(@Norway-_-1999)
New Member
Joined: 9 years ago

Nice, keep up the good work 🙂

Reply
LEGACYY
Posts: 2350
(@legacyy)
Noble Member
Joined: 9 years ago

one day i want to be a good coder like you KranK the Legend (y)

Reply
Posts: 0
(@FastModz)
New Member
Joined: 9 years ago

thanks you KranK

Reply
Posts: 0
(@xelahot)
New Member
Joined: 9 years ago

Hey Rival Gamers

As many of you who code RPC may noticed there are Natives that used by Pointer Mostly they are Bool Natives that writes what ever to Pointer if Bool returned as True

The point is pointers are usual made for C/C++
there is way to use pointers in C# using Unsafe code but this is not good and will not work with these natives

i will show you how to use them in RPC/C# codding

Pointer Natives Example

1. GET_GROUND_Z_FOR_3D_COORD // Has Float Pointer
2. GET_PED_LAST_WEAPON_IMPACT_COORD Has Vector3 Pointer

There are more natives like this but you will get the point

Tutorial Float Pointer:
Float Pointer using GET_GROUND_Z_FOR_3D_COORD Native

Hidden content cannot be quoted.

Will Be adding Vector3 Pointer TUTORIAL soon as i get time to figure it out

Yo gee have you found a way to store Vector3 coords? its not working when reading floats

float[] numArray = new float[3];
if (Hook.Call("GET_PED_LAST_WEAPON_IMPACT_COORD", MyPedID, 0x10070000))
{
numArray[0] = PS3.Extension.ReadFloat(0x10070000); //X
numArray[1] = PS3.Extension.ReadFloat(0x10070004); //Y
numArray[2] = PS3.Extension.ReadFloat(0x10070008); //Z
}

Reply
Page 1 / 2