Click or drag to resize

BaseVehicle Events

The BaseVehicle type exposes the following members.

Events
  NameDescription
Public eventDamageStatusUpdated
Occurs when the OnDamageStatusUpdated(PlayerEventArgs) is being called. This callback is called when a element of this BaseVehicle such as doors, tires, panels, or lights get damaged.
Public eventDied
Occurs when the OnDeath(PlayerEventArgs) is being called. This callback is called when this BaseVehicle is destroyed - either by exploding or becoming submerged in water.
Public eventDisposed
Occurs when this isntance has been disposed.
(Inherited from Disposable.)
Public eventMod
Occurs when the OnMod(VehicleModEventArgs) is being called. This callback is called when this BaseVehicle is modded.
Public eventPaintjobApplied
Occurs when the OnPaintjobApplied(VehiclePaintjobEventArgs) is being called. Called when a BasePlayer changes the paintjob of this BaseVehicle (in a modshop).
Public eventPlayerEnter
Occurs when the OnPlayerEnter(EnterVehicleEventArgs) is being called. This callback is called when a BasePlayer starts to enter this BaseVehicle, meaning the player is not in vehicle yet at the time this callback is called.
Public eventPlayerExit
Occurs when the OnPlayerExit(PlayerVehicleEventArgs) is being called. This callback is called when a BasePlayer exits a BaseVehicle.
Public eventResprayed
Occurs when the OnResprayed(VehicleResprayedEventArgs) is being called. The callback name is deceptive, this callback is called when a BasePlayer exits a mod shop with this BaseVehicle, regardless of whether the vehicle's colors were changed, and is NEVER called for pay 'n' spray garages.
Public eventSirenStateChanged
Occurs when the OnSirenStateChanged(SirenStateEventArgs) is being called. This callback is called when this BaseVehicle's siren is toggled.
Public eventSpawn
Occurs when the OnSpawn(EventArgs) is being called. This callback is called when BaseVehicle spawns.
Public eventStreamIn
Occurs when the OnStreamIn(PlayerEventArgs) is being called. Called when a BaseVehicle is streamed to a BasePlayer's client.
Public eventStreamOut
Occurs when the OnStreamOut(PlayerEventArgs) is being called. This callback is called when a BaseVehicle is streamed out from some BasePlayer's client.
Public eventTrailerUpdate
Occurs when the OnTrailerUpdate(TrailerEventArgs) is being called. This callback is called when a BasePlayer sent a trailer update about this BaseVehicle.
Public eventUnoccupiedUpdate
Occurs when the OnUnoccupiedUpdate(UnoccupiedVehicleEventArgs) is being called. This callback is called everytime this BaseVehicle updates the server with their status while it is unoccupied.
Top
See Also