Vehicle::getLiveryName: Difference between revisions

From RAGE Multiplayer Wiki
(yay)
 
 
Line 11: Line 11:
</syntaxhighlight>
</syntaxhighlight>
==See also==
==See also==
{{Vehicle_function_c}}
{{Vehicle_definition_c}}
[[Category:Clientside API]]
[[Category:Clientside API]]
[[Category:TODO: Example]]
[[Category:TODO: Example]]

Latest revision as of 11:39, 9 May 2024

Second Param = LiveryIndex

example

int count = VEHICLE::GET_VEHICLE_LIVERY_COUNT(veh);
for (int i = 0; i < count; i++)
{
char* LiveryName = VEHICLE::GET_LIVERY_NAME(veh, i);
}


this example will work fine to fetch all names
for example for Sanchez we get

SANC_LV1
SANC_LV2
SANC_LV3
SANC_LV4
SANC_LV5

Edited By KiLLerBoy_001
---------------------------------
Using _GET_LABEL_TEXT, you can get the localized livery name.

Syntax

vehicle.getLiveryName(liveryIndex);

Required Arguments

  • liveryIndex: int

Return value

  • String

Example

// todo

See also