From cb25031581e346e365bef3e14add65104973a89b Mon Sep 17 00:00:00 2001 From: Solareon <769465+solareon@users.noreply.github.com> Date: Fri, 9 Aug 2024 18:45:09 +0200 Subject: [PATCH] fix(client/admin): return vehicle model by hash lookup vice native --- client/admin.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/client/admin.lua b/client/admin.lua index 4e42682..7137f05 100644 --- a/client/admin.lua +++ b/client/admin.lua @@ -1,3 +1,4 @@ +local VEHICLES_HASH = exports.qbx_core:GetVehiclesByHash() local optionInvisible = false local godmode = false local infiniteAmmo = false @@ -514,7 +515,7 @@ lib.callback.register('qbx_admin:client:SaveCarDialog', function() end) lib.callback.register('qbx_admin:client:GetVehicleInfo', function() - return GetDisplayNameFromVehicleModel(GetEntityModel(cache.vehicle)):lower(), lib.getVehicleProperties(cache.vehicle) + return VEHICLES_HASH[GetEntityModel(cache.vehicle)].model, lib.getVehicleProperties(cache.vehicle) end) CreateThread(function()