Skip to content

Commit

Permalink
fix getElementBaseModel
Browse files Browse the repository at this point in the history
  • Loading branch information
Fernando-A-Rocha committed Aug 1, 2024
1 parent f69dd0d commit 3971e73
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions newmodels_reborn/scripts/core/shared_exported.lua
Original file line number Diff line number Diff line change
Expand Up @@ -220,11 +220,11 @@ end

function getElementBaseModel(element)
if not isClientsideScript then
return getElementModel(element)
return _getElementModel(element)
end
local customModel = tonumber(getElementData(element, getCustomModelDataKey(element)))
if not customModel then
return getElementModel(element)
return _getElementModel(element)
end
local customModelInfo = getSharedCustomModelsTable()[customModel]
return customModelInfo and customModelInfo.baseModel or nil
Expand Down

0 comments on commit 3971e73

Please sign in to comment.