CLEO Help Health,Armor,Money,Weapon info

CLEO related
Status
Not open for further replies.

Kriso_Anderson

Active member
Joined
Apr 27, 2014
Messages
56
Reaction score
1
I use gta iv hud, and i want to use normal health bar,armor bar,money and weapon info, i trying to find offsets for that but i didnt find
 

_Safa

Well-known member
Joined
Sep 22, 2019
Messages
295
Reaction score
100
Location
UGBASE
So there is more than 1 way to get those infos (standard opcodes / sampfuncs opcodes / read memory).

Opcode for getting health & armor of yourself:

0226: get_char_health $PLAYER_ACTOR store_to $XYZ
04DD: get_char_armour $PLAYER_ACTOR store_to $XYZ

_________________________________________________

Address to get your clientsided money:

0xB7CE50 (read as int size 4)

_________________________________________________

Opcode to get current weapon of an yourself:

0470: get_current_char_weapon $PLAYER_ACTOR store_to $XYZ

This opcode returns the Weapon-ID (int) and not the name. You will have to check the ID like:

HTML:
IF $XYZ == 24 // 24 would be the ID / integer of the desert-eagle
THEN
        $pCurWeapon = "Desert-Eagle"
        printf "%s" 1337 $pCurWeapon
END
IF $XYZ == 31 // 31 would be the ID / integer of the m4
THEN
        $pCurWeapon = "M4"
        printf "%s" 1337 $pCurWeapon
END


If you ask for pasta code i'll gas your whole body.
 

Zin

Expert
Joined
Aug 1, 2013
Messages
1,719
Solutions
1
Reaction score
111
I mean he said he wants to just use gta iv hud without the "health bar, armour, money and weapon info" which is basically the entire HUD. On a serious note if you just want the radar which seems to be all that is left then you probably can't. I looked for the GTA IV hud mod and it's an .asi script meaning no way to go inside and change anything.

https://www.gtagarage.com/mods/screen.php?s=21263 For radar.
Any other stuff probably exists, so basically just use standalone gta iv features.
 
Status
Not open for further replies.
Top