Streaming::hasAnimDictLoaded
Syntax
mp.game.streaming.hasAnimDictLoaded(animDict);
Required Arguments
- animDict: String
Return value
- Boolean
Example #1
This example will output notification with specified message.
Client-Side
mp.game.streaming.requestAnimDict("amb@code_human_cower@male@base");
new Promise((resolve, reject) => {
const timer = setInterval(() => {
if(mp.game.streaming.hasAnimDictLoaded("amb@code_human_cower@male@base")) {
clearInterval(timer);
resolve();
}
}, 100);
});