Ui::displayHelpTextFromStringLabel
p0 is always 0.
duration when set to -1, is around 3s. Can not be more than 5000ms.
Example:
void FloatingHelpText1(char* text) {
BEGIN_TEXT_COMMAND_DISPLAY_HELP('STRING');
ADD_TEXT_COMPONENT_SUBSTRING_PLAYER_NAME(text);
END_TEXT_COMMAND_DISPLAY_HELP (0, 0, 1, -1);
}
Image:
- imgbin.org/images/26209.jpg
more inputs/icons: (scroll to line 377 and below)
- pastebin.com/nqNYWMSB
Used to be known as _DISPLAY_HELP_TEXT_FROM_STRING_LABEL
Syntax
mp.game.ui.displayHelpTextFromStringLabel(p0, loop, beep, duration);
Required Arguments
- p0: unknown (to be checked)
- loop: Boolean
- beep: Boolean
- duration: int
Return value
- Undefined
Example
mp.game.ui.setTextComponentFormat('STRING');
mp.game.ui.addTextComponentSubstringPlayerName('Hit ~INPUT_CONTEXT~ to do something');
mp.game.ui.displayHelpTextFromStringLabel(0, true, true, -1);