Skip to content

Commit

Permalink
add getLoadedModels exported func (client)
Browse files Browse the repository at this point in the history
  • Loading branch information
Fernando-A-Rocha committed Jul 31, 2024
1 parent 2eb0832 commit 1082d10
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions newmodels_reborn/core/client.lua
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ loadedModels = {}
local currFreeIdDelay = 9500 -- ms
local FREE_ID_DELAY_STEP = 500 -- ms

function getLoadedModels() return loadedModels end

local function applyElementCustomModel(element)
local customModel = tonumber(getElementData(element, getCustomModelDataKey(element)))
if not customModel then return end
Expand Down
1 change: 1 addition & 0 deletions newmodels_reborn/meta.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
<export function="setPickupType" type="shared"/>
<export function="setElementModel" type="shared"/>
<export function="getElementModel" type="shared"/>
<export function="getLoadedModels" type="client"/>

<!-- Testing -->
<script src="optional/c_testing.lua" type="client"/>
Expand Down

0 comments on commit 1082d10

Please sign in to comment.