Przejdź do głównej zawartości

GetVehicleTrailer

Description

Get the ID of the trailer attached to a vehicle.

NameDescription
vehicleidThe ID of the vehicle to get the trailer of.

Returns

The vehicle ID of the trailer or 0 if no trailer is attached.

Examples

new
trailerId = GetVehicleTrailer(vehicleid);
DetachTrailerFromVehicle(trailerId);

Notes

warning

This function does not work for trains.