Vehicle::getDisplayNameFromVehicleModel

From RAGE Multiplayer Wiki
Revision as of 20:14, 6 May 2017 by Marty uploader (talk | contribs) (yay)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Returns model name of vehicle in all caps. Needs to be displayed through localizing text natives to get proper display name.
-----------------------------------------------------------------------------------------------------------------------------------------
While often the case, this does not simply return the model name of the vehicle (which could be hashed to return the model hash). Variations of the same vehicle may also use the same display name.
-----------------------------------------------------------------------------------------------------------------------------------------

Returns 'CARNOTFOUND' if the hash doesn't match a vehicle hash.

Using UI::_GET_LABEL_TEXT, you can get the localized name.

For a full list, see here: pastebin.com/wvpyS4kS (pastebin.com/dA3TbkZw)

Syntax

vehicle.getDisplayNameFromVehicleModel(modelHash);

Required Arguments

  • modelHash: Model hash or name

Return value

  • String

Example

todo

See also