Ui::addTextComponentSubstringLocalized

From RAGE Multiplayer Wiki
Jump to navigation Jump to search

Takes a Hash of an input (example : INPUT_FRONTEND_RIGHT) and displays it's name it when you display your notification above the map.

^^ I don't know how somebody figured it prints the name of the input, when this native is clearly used for displaying Street Names in the scripts. Can you give an example if it actually does print out the INPUTS?


MulleDK19: It does neither. It adds the localized text of the specified GXT entry name. Eg. if the argument is GET_HASH_KEY('ES_HELP'), adds 'Continue'. I've renamed it to _ADD_TEXT_COMPONENT_SUBSTRING_LOCALIZED to reflect this.

Zorg93: correct name found, just uses a text labels hash key

Syntax

mp.game.ui.addTextComponentSubstringLocalized(gxtEntryHash);

Required Arguments

  • gxtEntryHash: Model hash or name

Return value

  • Undefined

Example

// todo

See also