GetVehicleTruck

From GT-MP
Jump to: navigation, search
GetVehicleTruck
Shared Function
Utilities-terminal.png Server-Side System-users.png Client-Side
Csharp.png C# Javascript.png JavaScript

Returns the vehicle/truck that carries the specified vehicle/trailer.

Dialog-warning.png Note: This feature is currently not in the API, or is currently not accurate on the wiki due to upcoming API changes. New API functions and changes will be released with the next update.

Syntax

In C#
Server-Side Function

API.getVehicleTruck(NetHandle vehicle);

Required Arguments

  • vehicle: parameter input should be in NetHandle type.


NOTE: This function returns data in NetHandle type.

In Javascript
Client-Side Function

API.getVehicleTruck(LocalHandle vehicle);

Required Arguments

  • vehicle: parameter input should be in LocalHandle type.


NOTE: This function returns data in LocalHandle type.

Usage example(s)

In C#
Server-Side Function

API.getVehicleTruck(NetHandle vehicle);

In Javascript
Client-Side Function

API.getVehicleTruck(LocalHandle vehicle);

References