Advertising
Navigation
Information

GTA San Andreas Mods

:

CLEO Modifications

Simple HUD


Author: Vital
Website
Date: 11.05.2020
Downloads: 5931 | Statistics
Filesize: 13.774 KB

Rating:
9.80 based on 5 votes

Simple HUD for GTA San Andreas

Author: Vital

Yet another CLEO script made mainly to teach coding. This time I've made a HUD of my own that, though simple, displays all the necessary game info and has a few nice features:
• can be turned off in menu (no need to remember or bind a key for that)
• some elements' colour changes depending on its value (e.g. the clock becomes darker as the night draws closer, the ammo gets brighter when you become low on ammo)
• slightly moves when you move mouse or analogue stick.

Apart from this, while reading the code, you can learn to:
• use constants
• work with memory addresses
• utilise text_draw mode
• draw texts close to one another without overlapping
• read mouse's or analogue stick's offset
• know how many ammo is left in the magazine
• make one values dependent on others (and even use sine for that!)
• read from the game's memory how much oxygen is left
• read from the game's memory how much the police are angry
• use scm-functions

17.05.2020: fixed ammo showing for some weapon categories + slightly increased stability.

Advertising
Download
DOWNLOAD
Virus Detection Ratio: 0% (0/58)
See Virus Scan Report
Advertising
Report
Mod Report

Are you the owner of this mod? If someone has stolen your work, you can make a request for removing this mod.

Report this mod

Screenshots
Videos
Add a Youtube video

9 comments found
Name:


Comment text:


reload, if the code cannot be seen

Attention:
You need to be registered and signed in to post comments!
Davidstrs
"Vic"
Vic
Comments: 0
Profile
Message
11.05.2020, 18:17

hey Vital don't mind that i look in source code just to see why is text moving when you move mouse i see here you using it 0A4A: store_joystick_X_offset and why is that ? shok if you want perfect screen resolution and right screen position i can give script that works with any resolution


KingSam
"Vic"
Vic
Comments: 0
Profile
Message
11.05.2020, 18:18

WOW


Vital
"Vic"
Vic
Comments: 0
Profile
Message
11.05.2020, 18:27

@Davidstrs, yes, of course. Just as the description reads, the script is intended to help people learn scripting, not only to provide them with a new HUD.

And yes, 0A4A is the main opcode that allows the text to move. I have some predefined coordinates where each text should be, and then, in a separate scm-function, I utilise that opcode to determine the offset from default positions. The offset is limited to a certain degree so that the text doesn't go off screen. That's it! The principle is simple, yet it took me some time to figure out the actual implementation in the code. smile


FiR2020
"Vic"
Vic
Comments: 0
Profile
Message
11.05.2020, 20:06

good


Uchiha Batuhan
"Vic"
Vic
Comments: 0
Profile
Message
12.05.2020, 00:08

Good Man.


papai102
"Vic"
Vic
Comments: 0
Profile
Message
12.05.2020, 03:58

good


MiRuLL
"Vic"
Vic
Comments: 0
Profile
Message
13.05.2020, 12:09

good


Ztalker867
"Vic"
Vic
Comments: 0
Profile
Message
16.05.2020, 05:53

nice hud men! biggrin


GVMod
"Vic"
Vic
Comments: 0
Profile
Message
28.05.2020, 01:17

wink