Introduced in

Version:1.40

Description

Description:Causes a vehicle (even if it is empty) to adjust its steering and braking to follow the tow vehicle. The command does not initiate a towing process (this has to be done separately, using attachTo).

Syntax

Syntax:vehicle1 setTowParent vehicle2
Parameters:
  • vehicle1 : Object - Vehicle that is being towed.
  • vehicle2 : Object - Vehicle that is towing vehicle1. If set to objNull, automatic steering / braking is disabled.
Return Value:Nothing

Examples

Examples:
car setTowParent truck;

Additional Information

See also: getTowParent
Multiplayer:
Problems:

Notes