From b3a27994203f6a3cf6ebd33b11471ced6698caa4 Mon Sep 17 00:00:00 2001 From: Arctos2win <116841243+Arctos2win@users.noreply.github.com> Date: Wed, 20 Sep 2023 16:33:52 +0200 Subject: [PATCH] Update functions.lua --- [core]/es_extended/client/functions.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/[core]/es_extended/client/functions.lua b/[core]/es_extended/client/functions.lua index bcae0712..50300ab4 100644 --- a/[core]/es_extended/client/functions.lua +++ b/[core]/es_extended/client/functions.lua @@ -1365,7 +1365,7 @@ local mismatchedTypes = { ---@return string function ESX.GetVehicleType(model) model = type(model) == 'string' and joaat(model) or model - if not IsModelAVehicle(model) then return end + if not IsModelInCdimage(model) then return end if mismatchedTypes[model] then return mismatchedTypes[model] end