Request Pointer in clip

Status
Not open for further replies.

kakaka

Active member
Joined
Jun 7, 2014
Messages
59
Reaction score
0
Hello guys.
you can get the pointer of the number bullets inside the clip by cheat engine?
every time i relload my  gta comes one new address, then someone could give me a fix andress?
 

ThermaL

Expert
Joined
Oct 23, 2013
Messages
1,593
Reaction score
3
Here's how you can get them with CLEO..

while true
wait 0
if
0ADC: "AMMO"
then
gosub @GET_AMMO_IN_CLIP
printf "You have %d ammo in clip" 2000 3@
end
end

:GET_AMMO_IN_CLIP
wait 0
0A96: 0@ = actor $PLAYER_ACTOR struct
0@ += 0x718 // Current Weapon Slot
0A8D: 1@ = read_memory 0@ size 1 virtual_protect 0
0A96: 0@ = actor $PLAYER_ACTOR struct
0@ += 0x5A0 // Start of weapon data (28 bytes)
1@ *= 28
005A: 0@ += 1@ // Get weapon structure
0@ += 8 // Pointer to "Ammo in clip"
0A8D: 3@ = read_memory 0@ size 1 virtual_protect 0 // Ammo in clip
return
 

kakaka

Active member
Joined
Jun 7, 2014
Messages
59
Reaction score
0
TH3RM4L link said:
Here's how you can get them with CLEO..

while true
wait 0
if
0ADC: "AMMO"
then
gosub @GET_AMMO_IN_CLIP
printf "You have %d ammo in clip" 2000 3@
end
end

:GET_AMMO_IN_CLIP
wait 0
0A96: 0@ = actor $PLAYER_ACTOR struct
0@ += 0x718 // Current Weapon Slot
0A8D: 1@ = read_memory 0@ size 1 virtual_protect 0
0A96: 0@ = actor $PLAYER_ACTOR struct
0@ += 0x5A0 // Start of weapon data (28 bytes)
1@ *= 28
005A: 0@ += 1@ // Get weapon structure
0@ += 8 // Pointer to "Ammo in clip"
0A8D: 3@ = read_memory 0@ size 1 virtual_protect 0 // Ammo in clip
return

Thanks, but I meant to address to be used in visual basic
if you can send me, but still I will study this code cleo.
 
Status
Not open for further replies.
Top