GetMakeNameFromVehicleModel
Docslocal retval = GetMakeNameFromVehicleModel(modelHash)Description
Introduced in build 1868
Retrieves the manufacturer's name for a specified vehicle.
Parameters
| Name | Type | Description |
|---|---|---|
modelHash | Hash | The model hash of the vehicle. |
Quick Snippet: Load Model HashmodelHash
modelHashModels must be loaded before use. This snippet handles requesting and releasing properly.
-- Properly load a model before spawning/using it
local modelName = "prop_barrel_01a" -- change to your model
local modelHash = GetHashKey(modelName)
RequestModel(modelHash)
while not HasModelLoaded(modelHash) do
Wait(0)
end
print("Model loaded: " .. modelName .. " (" .. modelHash .. ")")
-- Release when done:
-- SetModelAsNoLongerNeeded(modelHash)Vehicle Models

adder
alpha
blade
ardent
asea
cogcabrio
baller
blistaReturns
char*Examples
Official
-- This example prints the manufacturer of the player's current vehicle.
-- Retrieve the player ped.
local playerPed = PlayerPedId()
-- Retrieve the vehicle the player is currently in.
local vehicle = GetVehiclePedIsIn(playerPed, false)
-- If the vehicle does not exist, end the execution of the code here.
if not DoesEntityExist(vehicle) then
return
end
-- Retrieve the model hash of the vehicle.
local vehicleHash = GetEntityModel(vehicle)
-- Retrieve the manufacturer of the vehicle.
local manufacturer = GetMakeNameFromVehicleModel(vehicleHash)
-- Print the manufacturer of the vehicle.
print("Vehicle Manufacturer: " .. manufacturer)