Vehicle::getTrailer: Difference between revisions

From RAGE Multiplayer Wiki
(Corrected errors)
Line 1: Line 1:
Gets the trailer of a vehicle and puts it into the trailer parameter.
Gets the trailer of a vehicle and puts it into the trailer parameter.
'''This function is being updated, it might not work correctly in the current version!'''
==Syntax==
==Syntax==
<syntaxhighlight lang="javascript">vehicle.getTrailerVehicle(trailer);</syntaxhighlight>
<syntaxhighlight lang="javascript">vehicle.getTrailer(vehicle);</syntaxhighlight>
=== Required Arguments ===
=== Required Arguments ===
*'''trailer:''' Vehicle
*'''vehicle:''' Vehicle handle
===Return value===
===Return value===
*'''Vehicle'''
*'''Vehicle'''
==Example==
==Example==
<div class="header" style="background-color: #AE4040; color: #FFFFFF; border: 2px solid #AE4040;">
<div style="margin: 10px 10px 10px 10px;"><b>Client-Side</b></div>
<syntaxhighlight lang="javascript">
<syntaxhighlight lang="javascript">
// todo
// todo
</syntaxhighlight>
</syntaxhighlight>
</div>
==See also==
==See also==
{{Vehicle_function_c}}
{{Vehicle_function_c}}
[[Category:Clientside API]]
[[Category:Clientside API]]
[[Category:TODO: Example]]
[[Category:TODO: Example]]

Revision as of 14:54, 20 September 2017

Gets the trailer of a vehicle and puts it into the trailer parameter. This function is being updated, it might not work correctly in the current version!

Syntax

vehicle.getTrailer(vehicle);

Required Arguments

  • vehicle: Vehicle handle

Return value

  • Vehicle

Example

Client-Side
// todo

See also