mirror of
https://github.com/CommunityOx/ox_lib.git
synced 2026-08-17 06:56:03 +01:00
feat(imports): loadAnimDict
This commit is contained in:
9
imports/loadAnimDict/client.lua
Normal file
9
imports/loadAnimDict/client.lua
Normal 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
|
||||
Reference in New Issue
Block a user