OnVehicleChangeDimension

From Onset Developer Wiki
OnVehicleChangeDimension

Type: Event
Context: Server
Introduced: v1.2.2

Description

Event called when an vehicle instance changes dimensions from SetVehicleDimension.

Syntax

OnVehicleChangeDimension(vehicle, old_dimension, new_dimension)

Parameters

  • vehicle
    The vehicle which changed dimension.
  • old_dimension
    The old dimension.
  • new_dimension
    The new dimension.

Example

AddEvent("OnVehicleChangeDimension", function(vehicle, old_dimension, new_dimension)
	print("Vehicle "..vehicle.." changed dimensions")
end)

See also