PDA

View Full Version : HUD with multiple values



Ni3ls
10th August 2016, 11:28
Hi all,

Im a little bit stuck. I want to display a HUD like "number1 / number 2", where number1 and number2 can change.
How to do that?

EDIT:
Found this in default .str

REFERENCE PRESSYESNO
LANG_ENGLISH "Press '&&1' for Yes, or '&&2' for No"

How to update &&1 and &&2?

Ni3ls
10th August 2016, 12:06
Okay its not working. Iprint's are working, but how to make it work in a HUD?

voron00
10th August 2016, 12:29
You can only set one value on a hud element.

Ni3ls
10th August 2016, 12:32
Ah damn. So I have to create multiple HUDs?

IzNoGoD
10th August 2016, 12:59
Nope, use creatinfhud() with setinftext().

Search the forum :)

Ni3ls
12th August 2016, 12:10
But how to find those free "slots"?