Skip to content

Commit

Permalink
fix(shared/functions): pass model hash to GetVehicleClass export (#121
Browse files Browse the repository at this point in the history
)
  • Loading branch information
D4isDAVID authored Sep 18, 2024
1 parent 3e65322 commit ce4bee3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion shared/functions.lua
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ end
---@return VehicleConfig
function public.getVehicleConfig(vehicle)
local model = GetEntityModel(vehicle)
local class = IsDuplicityVersion() and exports.qbx_core:GetVehicleClass(vehicle) or GetVehicleClass(vehicle)
local class = IsDuplicityVersion() and exports.qbx_core:GetVehicleClass(model) or GetVehicleClass(vehicle)
local filteredConfig = {
modelConfig = config.vehicles.models[model],
categoryConfig = config.vehicles.categories[VEHICLES[model]?.category],
Expand Down

0 comments on commit ce4bee3

Please sign in to comment.