Dlc1::getDlcVehicleData: Difference between revisions
(yay) |
(yay) |
||
| Line 1: | Line 1: | ||
dlcVehicleIndex takes a number from 0 - GET_NUM_DLC_VEHICLES() - 1.<br>outData is a struct of 3 8-byte items.<br>The Second item in the struct *(Hash *)(outData + 1) is the vehicle hash. | dlcVehicleIndex takes a number from 0 - GET_NUM_DLC_VEHICLES() - 1.<br>outData is a struct of 3 8-byte items.<br>The Second item in the struct *(Hash *)(outData + 1) is the vehicle hash. | ||
==Syntax== | ==Syntax== | ||
<syntaxhighlight lang="javascript">dlc1.getDlcVehicleData(dlcVehicleIndex, outData);</syntaxhighlight> | <syntaxhighlight lang="javascript">mp.game.dlc1.getDlcVehicleData(dlcVehicleIndex, outData);</syntaxhighlight> | ||
=== Required Arguments === | === Required Arguments === | ||
*'''dlcVehicleIndex:''' int | *'''dlcVehicleIndex:''' int | ||
| Line 9: | Line 9: | ||
==Example== | ==Example== | ||
<syntaxhighlight lang="javascript"> | <syntaxhighlight lang="javascript"> | ||
todo | // todo | ||
</syntaxhighlight> | </syntaxhighlight> | ||
==See also== | ==See also== | ||
{{ | {{Dlc1_s_function_c}} | ||
[[Category:Clientside API]] | [[Category:Clientside API]] | ||
[[Category:TODO: Example]] | [[Category:TODO: Example]] | ||
Latest revision as of 21:06, 6 May 2017
dlcVehicleIndex takes a number from 0 - GET_NUM_DLC_VEHICLES() - 1.
outData is a struct of 3 8-byte items.
The Second item in the struct *(Hash *)(outData + 1) is the vehicle hash.
Syntax
mp.game.dlc1.getDlcVehicleData(dlcVehicleIndex, outData);
Required Arguments
- dlcVehicleIndex: int
- outData: unknown (to be checked)
Return value
- Boolean
Example
// todo