Advertisement
djhonga2001

Untitled

Dec 15th, 2016
429
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.20 KB | None | 0 0
  1. /Addresses from GTAV.exe module
  2. #define ADDRESS_WAYPOINT 0x1F59BB0 //
  3. #define ADDRESS_INVEHICLE 0x1FD8438 //is player in vehicle? bool
  4.  
  5. //offset from WORLD
  6. #define OFFSET_PLAYER 0x08 //playerbase
  7.  
  8. //entity offsets
  9. #define OFFSET_ENTITY_POSBASE 0x30 //base of a structure that contains entity coords
  10. #define OFFSET_ENTITY_POSBASE_POS 0x50 //vector3
  11. #define OFFSET_ENTITY_POS 0x90 //vector3
  12. #define OFFSET_ENTITY_HEALTH 0x280 //entity health (except for vehicles); float cur, float max
  13. #define OFFSET_ENTITY_HEALTH_MAX 0x2A0 //they moved this away from curHealth in 1.36 :(
  14. #define OFFSET_ENTITY_ATTACKER 0x02A8 //base to a list of the last 3 entities that attacked the current entity
  15.  
  16. //player (entity) offsets
  17. #define OFFSET_PER_FRAME 0x190 //per frame flags
  18. #define OFFSET_PLAYER_ARMOR 0x14B0 //armour
  19. #define OFFSET_PLAYER_INFO 0x10B8 //playerInfo struct
  20. #define OFFSET_PLAYER_INFO_WANTED 0x798 //wanted level; DWORD
  21. #define OFFSET_PLAYER_VEHICLE 0x14E0 //ptr to last used vehicle
  22. #define OFFSET_PLAYER_LAND_SPEED 0XE8 //player land move speed
  23. #define OFFSET_PLAYER_SWIM_SPEED 0XE4 //player swim move speed
  24. #define OFFSET_PLAYER_STAMINA 0XC00 //player stamina
  25. #define OFFSET_PLAYER_STAMINA_MAX 0XC04 //player stamina max
  26. #define OFFSET_PLAYER_LOCAL_NAME 0X7C //player local name
  27.  
  28. //vehicle offsets
  29. #define OFFSET_C_VEHICLE 0x14E0
  30. #define OFFSET_HANDLING 0x850
  31. #define OFFSET_VEHICLE_HEALTH 0x82C //vehicle health; 0.f-1000.f
  32.  
  33. //weapon offsets
  34. #define OFFSET_WEAPON_MANAGER 0x10C8 //from playerbase
  35. #define OFFSET_WEAPON_CURRENT 0x20 //from weapon manager
  36. #define OFFSET_WEAPON_AMMOINFO 0x48 //from weaponbase
  37. #define OFFSET_WEAPON_AMMOINFO_MAX 0x28 //ammoinfo
  38. #define OFFSET_WEAPON_AMMOINFO_CUR_1 0x08 //ptr to cur ammo 1
  39. #define OFFSET_WEAPON_AMMOINFO_CUR_2 0x00 //ptr to cur ammo 2
  40. #define OFFSET_WEAPON_AMMOINFO_CURAMMO 0x18 //offset to cur ammo
  41.  
  42. #define FLAG_EXPLOSIVE_AMMO ( 1 << 11 )
  43. #define FLAG_FIRE_AMMO ( 1 << 12 )
  44. #define FLAG_EXPLOSIVE_MELEE ( 1 << 13 )
  45. #define FLAG_SUPER_JUMP ( 1 << 14 )
  46. enum perFameFlags
  47. {
  48. EXPLOSIVE_AMMO,
  49. FIRE_AMMO,
  50. EXPLOSIVE_MELEE,
  51. SUPER_JUMP,
  52. MAXFLAGS
  53. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement