GET_MAKE_NAME_FROM_VEHICLE_MODEL
char* GET_MAKE_NAME_FROM_VEHICLE_MODEL(Hash modelHash);
Returns: Returns the display label of the manufacturer if the vehicle model is recognized, or "CARNOTFOUND" if the hash does not correspond to any known vehicle model.
Retrieves the manufacturer's name for a specified vehicle.
NativeDB Introduced: v1868
Old name: _GET_MAKE_NAME_FROM_VEHICLE_MODEL
Examples:
local playerPed = PlayerPedId()
local vehicle = GetVehiclePedIsIn(playerPed, false)
if not DoesEntityExist(vehicle) then
return
end
local vehicleHash = GetEntityModel(vehicle)
local manufacturer = GetMakeNameFromVehicleModel(vehicleHash)
print("Vehicle Manufacturer: " .. manufacturer)