Streaming::requestModel: Difference between revisions
(→Syntax) |
|||
| Line 9: | Line 9: | ||
==Example== | ==Example== | ||
<syntaxhighlight lang="javascript"> | <syntaxhighlight lang="javascript"> | ||
mp.game.streaming.requestModel( | mp.game.streaming.requestModel(mp.game.joaat('a_f_y_juggalo_01')); | ||
</syntaxhighlight> | </syntaxhighlight> | ||
==See also== | ==See also== | ||
{{Streaming_s_function_c}} | {{Streaming_s_function_c}} | ||
[[Category:Clientside API]] | [[Category:Clientside API]] | ||
[[Category:TODO: Example]] | [[Category:TODO: Example]] | ||
Revision as of 17:17, 27 May 2019
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(mp.game.joaat('a_f_y_juggalo_01'));