Vehicle::createVehicle: Difference between revisions

From RAGE Multiplayer Wiki
(yay)
 
(yay)
 
Line 1: Line 1:
p6 - last parameter does not mean vehicle handle is returned<br>maybe a quick view in disassembly will tell us what is actually does<br><br><br>p6 seems to check for something with the script in the disassembly
p6 - last parameter does not mean vehicle handle is returned<br>maybe a quick view in disassembly will tell us what is actually does<br><br><br>p6 seems to check for something with the script in the disassembly
==Syntax==
==Syntax==
<syntaxhighlight lang="javascript">vehicle.createVehicle(modelHash, x, y, z, heading, networkHandle, vehiclehandle);</syntaxhighlight>
<syntaxhighlight lang="javascript">mp.game.vehicle.createVehicle(modelHash, x, y, z, heading, networkHandle, vehiclehandle);</syntaxhighlight>
=== Required Arguments ===
=== Required Arguments ===
*'''modelHash:''' Model hash or name
*'''modelHash:''' Model hash or name
Line 14: Line 14:
==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:35, 6 May 2017

p6 - last parameter does not mean vehicle handle is returned
maybe a quick view in disassembly will tell us what is actually does


p6 seems to check for something with the script in the disassembly

Syntax

mp.game.vehicle.createVehicle(modelHash, x, y, z, heading, networkHandle, vehiclehandle);

Required Arguments

  • modelHash: Model hash or name
  • x: float
  • y: float
  • z: float
  • heading: float
  • networkHandle: Boolean
  • vehiclehandle: Boolean

Return value

  • unknown (to be checked)

Example

// todo

See also