Streaming::requestModel
Request a model to be loaded into memory
Looking it the disassembly, it seems like it actually returns the model if it's already loaded.
Syntax
mp.game.streaming.requestModel(modelHash);
Required Arguments
- model: Model hash
Return value
- Undefined
Example
mp.game.streaming.requestModel("infernus", () =>
{
mp.gui.outputChatBox(`${mp.game.streaming.hasModelLoaded("infernus")} is true`);
});