OnVehicleTrailerChange
This event is triggered when a vehicle's trailer changes.
C# Syntax
[ServerEvent(Event.VehicleTrailerChange)]
Parameters
- vehicle: parameter input should be in Vehicle type
- trailer: parameter input should be in Vehicle type
Example
[ServerEvent(Event.VehicleTrailerChange)]
public void OnVehicleTrailerChange(Vehicle vehicle, Vehicle trailer)
{
NAPI.Util.ConsoleOutput($"Trailer Change: {vehicle.Handle} - {trailer.Handle}.");
}