Streaming::requestModel: Difference between revisions

From RAGE Multiplayer Wiki
(yay)
 
(yay)
Line 1: Line 1:
Request a model to be loaded into memory<br><br>Looking it the disassembly, it seems like it actually returns the model if it's already loaded.<br>
Request a model to be loaded into memory<br><br>Looking it the disassembly, it seems like it actually returns the model if it's already loaded.<br>
==Syntax==
==Syntax==
<syntaxhighlight lang="javascript">streaming.requestModel(model);</syntaxhighlight>
<syntaxhighlight lang="javascript">mp.game.streaming.requestModel(model);</syntaxhighlight>
=== Required Arguments ===
=== Required Arguments ===
*'''model:''' Model hash or name
*'''model:''' Model hash or name
Line 8: Line 8:
==Example==
==Example==
<syntaxhighlight lang="javascript">
<syntaxhighlight lang="javascript">
todo
// todo
</syntaxhighlight>
</syntaxhighlight>
==See also==
==See also==
{{Streaming_function_c}}
{{Streaming_s_function_c}}
[[Category:Clientside API]]
[[Category:Clientside API]]
[[Category:TODO: Example]]
[[Category:TODO: Example]]

Revision as of 21:32, 6 May 2017

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(model);

Required Arguments

  • model: Model hash or name

Return value

  • Undefined

Example

// todo

See also

Template:Streaming s function c