Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Way 1:
- public static int MemoryAddress(this Ped ped)
- {
- PropertyInfo info = typeof(Ped).GetProperty("MemoryAddress", BindingFlags.NonPublic | BindingFlags.Instance);
- var address = info.GetValue(ped, null);
- return (int)address;
- }
- Way 2:
- public static int MemoryAddress(this Ped ped)
- {
- PropertyInfo info = typeof(Ped).GetProperty("MemoryAddress", BindingFlags.NonPublic | BindingFlags.Instance);
- int address = (int)info.GetValue(ped, null);
- return address;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement