Streaming::requestModel

From RAGE Multiplayer Wiki

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`);
});

See also

Template:Streaming s function c