natives.haveAnimsLoaded
Jump to navigation
Jump to search
Function Client Only ![]()
Online and Offline
Available since Client 1.0.0
bool natives.haveAnimsLoaded(string animDict)
The natives.haveAnimsLoaded function is used to Checks if the specified animation dictionary has been loaded into memory.
Parameters
| 1) | string | animDict | The animation dictionary name (e.g. "cop"). |
Return
| bool | True if the animation dictionary is loaded, false otherwise. |
Notes
- - Must be called before playing an animation to ensure the dictionary is available- Often used together with natives.requestAnims to load missing dictionaries.
Examples
Example 1 - JavaScript:
if (natives.haveAnimsLoaded("cop")) {
console.log("Animation dictionary 'cop' not loaded yet");
}
Compatibility
There isn't any compatibility information for this function.