Click or drag to resize

BaseVehicle Methods

The BaseVehicle type exposes the following members.

Methods
  NameDescription
Public methodAddComponent
Adds a 'component' (often referred to as a 'mod' (modification)) to this Vehicle.
Protected methodAssertNotDisposed
Checks whether this instance has been disposed. If it has, it throws an exception.
(Inherited from Disposable.)
Public methodChangeColor
Change this BaseVehicle's primary and secondary colors.
Public methodChangePaintjob
Change this BaseVehicle's paintjob (for plain colors see ChangeColor(Int32, Int32)).
Public methodStatic memberCreate
Creates a BaseVehicle in the world.
Public methodStatic memberCreateStatic(VehicleModelType, Vector3, Single, Int32, Int32)
Creates a static BaseVehicle in the world.
Public methodStatic memberCreateStatic(VehicleModelType, Vector3, Single, Int32, Int32, Int32, Boolean)
Creates a static BaseVehicle in the world.
Public methodDispose
Performs tasks associated with freeing, releasing, or resetting unmanaged resources.
(Inherited from Disposable.)
Protected methodDispose(Boolean)
Removes this instance from the pool.
(Overrides IdentifiedPoolTInstanceDispose(Boolean).)
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Finalizes an instance of the Disposable class.
(Inherited from Disposable.)
Public methodGetComponentInSlot
Retrieves the installed component ID from this BaseVehicle in a specific slot.
Public methodStatic memberGetComponentType
Find out what type of component a certain ID is.
Public methodGetDamageStatus
Retrieve the damage statuses of this BaseVehicle.
Public methodGetDistanceFromPoint
This function can be used to calculate the distance (as a float) between this BaseVehicle and another map coordinate. This can be useful to detect how far a vehicle away is from a location.
Public methodGetDoorsParameters(Boolean, Boolean, Boolean, Boolean)
Gets the doors parameters.
Public methodGetDoorsParameters(VehicleParameterValue, VehicleParameterValue, VehicleParameterValue, VehicleParameterValue)
Gets the doors parameters.
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodStatic memberGetModelInfo
Retrieve information about a specific vehicle model such as the size or position of seats.
Public methodGetParameters(Boolean, Boolean, Boolean, Boolean, Boolean, Boolean, Boolean)
Gets this BaseVehicle's parameters.
Public methodGetParameters(VehicleParameterValue, VehicleParameterValue, VehicleParameterValue, VehicleParameterValue, VehicleParameterValue, VehicleParameterValue, VehicleParameterValue)
Gets this BaseVehicle's parameters.
Public methodGetRotationQuat
Returns this BaseVehicle's rotation on all axis as a quaternion.
Public methodGetRotationQuat(Single, Single, Single, Single)
Returns this BaseVehicle's rotation on all axis as a quaternion.
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodGetWindowsParameters(Boolean, Boolean, Boolean, Boolean)
Gets the windows parameters.
Public methodGetWindowsParameters(VehicleParameterValue, VehicleParameterValue, VehicleParameterValue, VehicleParameterValue)
Gets the windows parameters.
Protected methodInitialize
An overloadable point for initialization logic which requires the Id to be set.
(Inherited from IdentifiedPoolTInstance.)
Public methodIsStreamedIn
Checks if this BaseVehicle is streamed in for a BasePlayer.
Public methodLinkToInterior
Links this BaseVehicle to the interior. This can be used for example for an arena/stadium.
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodOnDamageStatusUpdated
Raises the DamageStatusUpdated event.
Public methodOnDeath
Raises the Died event.
Public methodOnMod
Raises the Mod event.
Public methodOnPaintjobApplied
Raises the PaintjobApplied event.
Public methodOnPlayerEnter
Raises the PlayerEnter event.
Public methodOnPlayerExit
Raises the PlayerExit event.
Public methodOnResprayed
Raises the Resprayed event.
Public methodOnSirenStateChanged
Raises the SirenStateChanged event.
Public methodOnSpawn
Raises the Spawn event.
Public methodOnStreamIn
Raises the StreamIn event.
Public methodOnStreamOut
Raises the StreamOut event.
Public methodOnTrailerUpdate
Raises the TrailerUpdate event.
Public methodOnUnoccupiedUpdate
Raises the UnoccupiedUpdate event.
Public methodRemoveComponent
Remove a component from the BaseVehicle.
Public methodRepair
Fully repairs this BaseVehicle, including visual damage (bumps, dents, scratches, popped tires etc.).
Public methodRespawn
Sets this BaseVehicle back to the position at where it was created.
Public methodSetAngularVelocity
Sets the angular velocity of this BaseVehicle.
Public methodSetDoorsParameters(Boolean, Boolean, Boolean, Boolean)
Sets the doors parameters.
Public methodSetDoorsParameters(VehicleParameterValue, VehicleParameterValue, VehicleParameterValue, VehicleParameterValue)
Sets the doors parameters.
Public methodSetNumberPlate
Set this BaseVehicle's numberplate, which supports olor embedding.
Public methodSetParameters(Boolean, Boolean, Boolean, Boolean, Boolean, Boolean, Boolean)
Sets this BaseVehicle's parameters for all players.
Public methodSetParameters(VehicleParameterValue, VehicleParameterValue, VehicleParameterValue, VehicleParameterValue, VehicleParameterValue, VehicleParameterValue, VehicleParameterValue)
Sets this BaseVehicle's parameters for all players.
Public methodSetParametersForPlayer
Set the parameters of this BaseVehicle for a BasePlayer.
Public methodSetWindowsParameters(Boolean, Boolean, Boolean, Boolean)
Sets the windows parameters.
Public methodSetWindowsParameters(VehicleParameterValue, VehicleParameterValue, VehicleParameterValue, VehicleParameterValue)
Sets the windows parameters.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodUpdateDamageStatus
Sets the various visual damage statuses of this BaseVehicle, such as popped tires, broken lights and damaged panels.
Top
See Also