Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /Addresses from GTAV.exe module
- #define ADDRESS_WAYPOINT 0x1F59BB0 //
- #define ADDRESS_INVEHICLE 0x1FD8438 //is player in vehicle? bool
- //offset from WORLD
- #define OFFSET_PLAYER 0x08 //playerbase
- //entity offsets
- #define OFFSET_ENTITY_POSBASE 0x30 //base of a structure that contains entity coords
- #define OFFSET_ENTITY_POSBASE_POS 0x50 //vector3
- #define OFFSET_ENTITY_POS 0x90 //vector3
- #define OFFSET_ENTITY_HEALTH 0x280 //entity health (except for vehicles); float cur, float max
- #define OFFSET_ENTITY_HEALTH_MAX 0x2A0 //they moved this away from curHealth in 1.36 :(
- #define OFFSET_ENTITY_ATTACKER 0x02A8 //base to a list of the last 3 entities that attacked the current entity
- //player (entity) offsets
- #define OFFSET_PER_FRAME 0x190 //per frame flags
- #define OFFSET_PLAYER_ARMOR 0x14B0 //armour
- #define OFFSET_PLAYER_INFO 0x10B8 //playerInfo struct
- #define OFFSET_PLAYER_INFO_WANTED 0x798 //wanted level; DWORD
- #define OFFSET_PLAYER_VEHICLE 0x14E0 //ptr to last used vehicle
- #define OFFSET_PLAYER_LAND_SPEED 0XE8 //player land move speed
- #define OFFSET_PLAYER_SWIM_SPEED 0XE4 //player swim move speed
- #define OFFSET_PLAYER_STAMINA 0XC00 //player stamina
- #define OFFSET_PLAYER_STAMINA_MAX 0XC04 //player stamina max
- #define OFFSET_PLAYER_LOCAL_NAME 0X7C //player local name
- //vehicle offsets
- #define OFFSET_C_VEHICLE 0x14E0
- #define OFFSET_HANDLING 0x850
- #define OFFSET_VEHICLE_HEALTH 0x82C //vehicle health; 0.f-1000.f
- //weapon offsets
- #define OFFSET_WEAPON_MANAGER 0x10C8 //from playerbase
- #define OFFSET_WEAPON_CURRENT 0x20 //from weapon manager
- #define OFFSET_WEAPON_AMMOINFO 0x48 //from weaponbase
- #define OFFSET_WEAPON_AMMOINFO_MAX 0x28 //ammoinfo
- #define OFFSET_WEAPON_AMMOINFO_CUR_1 0x08 //ptr to cur ammo 1
- #define OFFSET_WEAPON_AMMOINFO_CUR_2 0x00 //ptr to cur ammo 2
- #define OFFSET_WEAPON_AMMOINFO_CURAMMO 0x18 //offset to cur ammo
- #define FLAG_EXPLOSIVE_AMMO ( 1 << 11 )
- #define FLAG_FIRE_AMMO ( 1 << 12 )
- #define FLAG_EXPLOSIVE_MELEE ( 1 << 13 )
- #define FLAG_SUPER_JUMP ( 1 << 14 )
- enum perFameFlags
- {
- EXPLOSIVE_AMMO,
- FIRE_AMMO,
- EXPLOSIVE_MELEE,
- SUPER_JUMP,
- MAXFLAGS
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement