From 8a76950ed9f8a0143caca00964eebf9cd2c379fb Mon Sep 17 00:00:00 2001 From: someone <98275381+someone005@users.noreply.github.com> Date: Mon, 6 Jan 2025 14:46:01 +0100 Subject: [PATCH] feat(es_extended/client): add vehicle type to ESX.Game.GetVehicleProperties --- [core]/es_extended/client/functions.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/[core]/es_extended/client/functions.lua b/[core]/es_extended/client/functions.lua index 8a577e7e1..290f4d401 100644 --- a/[core]/es_extended/client/functions.lua +++ b/[core]/es_extended/client/functions.lua @@ -870,6 +870,7 @@ function ESX.Game.GetVehicleProperties(vehicle) tyresCanBurst = GetVehicleTyresCanBurst(vehicle), plate = ESX.Math.Trim(GetVehicleNumberPlateText(vehicle)), plateIndex = GetVehicleNumberPlateTextIndex(vehicle), + type = GetVehicleType(vehicle), bodyHealth = ESX.Math.Round(GetVehicleBodyHealth(vehicle), 1), engineHealth = ESX.Math.Round(GetVehicleEngineHealth(vehicle), 1),