diff --git a/imports/loadAnimDict/client.lua b/imports/loadAnimDict/client.lua new file mode 100644 index 0000000..784cf0b --- /dev/null +++ b/imports/loadAnimDict/client.lua @@ -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 \ No newline at end of file