Skip to content

Commit

Permalink
fix(client/admin): return vehicle model by hash lookup vice native
Browse files Browse the repository at this point in the history
  • Loading branch information
solareon committed Aug 9, 2024
1 parent b7d8816 commit cb25031
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion client/admin.lua
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
local VEHICLES_HASH = exports.qbx_core:GetVehiclesByHash()
local optionInvisible = false
local godmode = false
local infiniteAmmo = false
Expand Down Expand Up @@ -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()
Expand Down

0 comments on commit cb25031

Please sign in to comment.