natives.haveAnimsLoaded: Difference between revisions
Jump to navigation
Jump to search
ChrisGame20 (talk | contribs) (Created page with "{{ScriptItem |endpoint = client |games = iv |type = function |name = natives.haveAnimsLoaded |parameters = string animDict |parameter1 = string animDict The animation dictionary name (e.g. "cop") |usage = Checks if the specified animation dictionary has been loaded into memory. |notes = - Must be called before playing an animation to ensure the dictionary is available - Often used together with natives.requestAnims to load missing dictionaries |return1 = bool True if...") |
ChrisGame20 (talk | contribs) No edit summary |
||
| Line 12: | Line 12: | ||
|return1 = bool True if the animation dictionary is loaded, false otherwise | |return1 = bool True if the animation dictionary is loaded, false otherwise | ||
|returnFail1 = bool False if the dictionary is not loaded | |returnFail1 = bool False if the dictionary is not loaded | ||
|exampleJS = | |exampleJS = natives.haveAnimsLoaded("cop"); | ||
}} | }} | ||
Latest revision as of 00:06, 4 December 2025
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:
natives.haveAnimsLoaded("cop");
Compatibility
There isn't any compatibility information for this function.