feat(imports): loadAnimDict

This commit is contained in:
Linden
2022-08-03 17:27:58 +10:00
parent 68a6352be4
commit 77fb9cf637

View File

@@ -0,0 +1,9 @@
---Loads an anim dictionary if it has not been loaded.
---Invalid anim dictionaries will never return.
---@param dict string
return function(dict)
if not HasAnimDictLoaded(dict) then
RequestAnimDict(dict)
repeat Wait(0) until HasAnimDictLoaded(dict)
end
end