mirror of
https://github.com/CommunityOx/ox_lib.git
synced 2026-08-18 15:36:02 +01:00
9 lines
263 B
Lua
9 lines
263 B
Lua
|
|
---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
|