getMakeNameFromVehicleModel
GET_MAKE_NAME_FROM_VEHICLE_MODEL0xF7AF4F159FF99F97The 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.
getMakeNameFromVehicleModel(modelHash: Hash): stringgetMakeNameFromVehicleModel(modelHash: Hash): stringUsage
JavaScript
const text = getMakeNameFromVehicleModel(modelHash);Lua
local text = getMakeNameFromVehicleModel(modelHash)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
modelHash | Hash | number | integer |
Returns
string JavaScript string, Lua stringNotes
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