VehicleClient

getMakeNameFromVehicleModel

GET_MAKE_NAME_FROM_VEHICLE_MODEL0xF7AF4F159FF99F97

The GTA V native GET_MAKE_NAME_FROM_VEHICLE_MODEL of the VEHICLE namespace, as LS:MP client scripts call it: the global function getMakeNameFromVehicleModel, in JavaScript and in Lua.

SignatureJavaScript
getMakeNameFromVehicleModel(modelHash: Hash): string
SignatureLua
getMakeNameFromVehicleModel(modelHash: Hash): string

Usage

JavaScript
const text = getMakeNameFromVehicleModel(modelHash);
Lua
local text = getMakeNameFromVehicleModel(modelHash)

Parameters

ParameterTypeJavaScriptLua
modelHashHashnumberinteger

Returns

string JavaScript string, Lua string

Notes

From the community native database. Names are LS:MP’s; samples may be written for C++ or another framework.

Will return a vehicle's manufacturer display label.
Returns "CARNOTFOUND" if the hash doesn't match a vehicle hash.

Full list of vehicles by DurtyFree: https://github.com/DurtyFree/gta-v-data-dumps/blob/master/vehicles.json

Reference

Namespace
Vehicle VEHICLE
In the game
const char* GET_MAKE_NAME_FROM_VEHICLE_MODEL(Hash modelHash)
Hash
0xF7AF4F159FF99F97
Introduced
Game build 1868 legacy numbering
Formerly
_GET_MAKE_NAME_FROM_VEHICLE_MODEL

Open in the interactive natives reference