BaseVehicle Events |
The BaseVehicle type exposes the following members.
Name | Description | |
---|---|---|
DamageStatusUpdated |
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.
| |
Died |
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.
| |
Disposed |
Occurs when this isntance has been disposed.
(Inherited from Disposable.) | |
Mod |
Occurs when the OnMod(VehicleModEventArgs) is being called.
This callback is called when this BaseVehicle is modded.
| |
PaintjobApplied |
Occurs when the OnPaintjobApplied(VehiclePaintjobEventArgs) is being called.
Called when a BasePlayer changes the paintjob of this BaseVehicle (in a modshop).
| |
PlayerEnter |
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.
| |
PlayerExit |
Occurs when the OnPlayerExit(PlayerVehicleEventArgs) is being called.
This callback is called when a BasePlayer exits a BaseVehicle.
| |
Resprayed |
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.
| |
SirenStateChanged |
Occurs when the OnSirenStateChanged(SirenStateEventArgs) is being called.
This callback is called when this BaseVehicle's siren is toggled.
| |
Spawn |
Occurs when the OnSpawn(EventArgs) is being called.
This callback is called when BaseVehicle spawns.
| |
StreamIn |
Occurs when the OnStreamIn(PlayerEventArgs) is being called.
Called when a BaseVehicle is streamed to a BasePlayer's client.
| |
StreamOut |
Occurs when the OnStreamOut(PlayerEventArgs) is being called.
This callback is called when a BaseVehicle is streamed out from some BasePlayer's
client.
| |
TrailerUpdate |
Occurs when the OnTrailerUpdate(TrailerEventArgs) is being called.
This callback is called when a BasePlayer sent a trailer update about this
BaseVehicle.
| |
UnoccupiedUpdate |
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.
|