HasAnimDictLoaded
Docslocal retval = HasAnimDictLoaded(animDict)Parameters
| Name | Type | Description |
|---|---|---|
animDict | char* | — |
Returns
BOOLReturns TRUE (1) or FALSE (0).
local retval = HasAnimDictLoaded(animDict)| Name | Type | Description |
|---|---|---|
animDict | char* | — |
BOOLReturns TRUE (1) or FALSE (0).
-- Animation dictionary (for TaskPlayAnim)
QBCore.Functions.RequestAnimDict("anim@amb@nightclub@dancers@")
-- Blocks until HasAnimDictLoaded returns true
-- Animation set (for SetPedMovementClipset, etc.)
QBCore.Functions.LoadAnimSet("move_m@drunk@verydrunk")
-- Blocks until HasAnimSetLoaded returns trueBoth follow the same pattern: skip if already loaded, call Request*, loop with Wait(0) until the Has*Loaded check passes.
No snippets yet. Be the first to contribute!