mirror of
https://github.com/CommunityOx/ox_lib.git
synced 2026-11-18 18:18:34 +00:00
feat(imports): loadAnimDict
This commit is contained in:
1 parent
68a6352be4
commit
77fb9cf637
1 file changed
+9
@@ -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
|
||||
Reference in new issue
Block a user