Vehicle::getVehicleClassFromName

From RAGE Multiplayer Wiki
Jump to navigation Jump to search

For a full enum, see here : pastebin.com/i2GGAjY0

char buffer[128];
std::sprintf(buffer, 'VEH_CLASS_%i', VEHICLE::GET_VEHICLE_CLASS_FROM_NAME (hash));

char* className = UI::_GET_LABEL_TEXT(buffer);

Syntax

mp.game.vehicle.getVehicleClassFromName(modelHash);

Required Arguments

  • modelHash: Model hash or name

Return value

  • int

Example

// todo

See also