Vehicle::getRandomVehicleModelInMemory: Difference between revisions

From RAGE Multiplayer Wiki
(yay)
 
(yay)
 
Line 1: Line 1:
Not present in the retail version! It's just a nullsub.<br><br>p0 always true (except in one case)<br>p1 returns a random vehicle hash loaded in memory<br>p2 unsure, maybe returns a different model
Not present in the retail version! It's just a nullsub.<br><br>p0 always true (except in one case)<br>p1 returns a random vehicle hash loaded in memory<br>p2 unsure, maybe returns a different model
==Syntax==
==Syntax==
<syntaxhighlight lang="javascript">vehicle.getRandomVehicleModelInMemory(p0, modelHash, p2);</syntaxhighlight>
<syntaxhighlight lang="javascript">mp.game.vehicle.getRandomVehicleModelInMemory(p0, modelHash, p2);</syntaxhighlight>
=== Required Arguments ===
=== Required Arguments ===
*'''p0:''' Boolean
*'''p0:''' Boolean
Line 10: Line 10:
==Example==
==Example==
<syntaxhighlight lang="javascript">
<syntaxhighlight lang="javascript">
todo
// todo
</syntaxhighlight>
</syntaxhighlight>
==See also==
==See also==
{{Vehicle_function_c}}
{{Vehicle_s_function_c}}
[[Category:Clientside API]]
[[Category:Clientside API]]
[[Category:TODO: Example]]
[[Category:TODO: Example]]

Latest revision as of 21:34, 6 May 2017

Not present in the retail version! It's just a nullsub.

p0 always true (except in one case)
p1 returns a random vehicle hash loaded in memory
p2 unsure, maybe returns a different model

Syntax

mp.game.vehicle.getRandomVehicleModelInMemory(p0, modelHash, p2);

Required Arguments

  • p0: Boolean
  • modelHash: Hash
  • p2: int

Return value

  • object: modelHash, p2

Example

// todo

See also