Vehicle::getTrailer: Difference between revisions

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

Latest revision as of 05:50, 3 April 2019

Returns the trailer of a vehicle.

This function is being updated, it might not work correctly in the current version!

Syntax

vehicle.getTrailer(trailer);

Required Arguments

  • trailer: Vehicle handle

Return value

  • Vehicle

Example

Client-Side
// todo

See also