Vehicle::getTrailer: Difference between revisions

From RAGE Multiplayer Wiki
(yay)
 
No edit summary
 
(4 intermediate revisions by 3 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!'''
 
==Syntax==
==Syntax==
<syntaxhighlight lang="javascript">vehicle.getTrailerVehicle(trailer);</syntaxhighlight>
<pre>vehicle.getTrailer(trailer);</pre>
 
=== Required Arguments ===
=== Required Arguments ===
*'''trailer:''' Vehicle
*'''trailer:''' Vehicle handle
 
===Return value===
===Return value===
*'''Vehicle'''
*'''Vehicle'''
==Example==
==Example==
<syntaxhighlight lang="javascript">
{{ClientsideCode|
<pre>
// todo
// todo
</syntaxhighlight>
</pre>
}}
 
==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