Перейти к содержанию

Vehicle::createVehicle

Материал из RAGE MP Wiki Archive
Версия от 21:35, 6 мая 2017; imported>Marty uploader (yay)
(разн.) ← Предыдущая версия | Текущая версия (разн.) | Следующая версия → (разн.)

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

<syntaxhighlight lang="javascript">mp.game.vehicle.createVehicle(modelHash, x, y, z, heading, networkHandle, vehiclehandle);</syntaxhighlight>

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

<syntaxhighlight lang="javascript"> // todo </syntaxhighlight>

See also