OnVehicleTrailerChange

From GT-MP
Jump to: navigation, search
OnVehicleTrailerChange
Server-Side Function
Utilities-terminal.png Server-Side Csharp.png C#

This event is triggered when a vehicle trailer change.

Requirements

First of all, it should be defined in your Main constructor for it to be called, otherwise it wouldn't be initiated at all!

public Main()
{
    API.onVehicleTrailerChange += OnVehicleTrailerChangeHandler;
}

Usage example(s)

private void OnVehicleTrailerChangeHandler(NetHandle tower, NetHandle trailer)
{
    //Code
}

References