-- 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)