Show / Hide Table of Contents

Class Vehicle

Class representing all regular vehicle types

Inheritance
Object
Element
PhysicalElement
SharedVehicle
BaseVehicle
Vehicle
Inherited Members
BaseVehicle.Controler
BaseVehicle.Occupants
BaseVehicle.Sirens
BaseVehicle.Variant
BaseVehicle.RespawnEnabled
BaseVehicle.RespawnDelay
BaseVehicle.RespawnPosition
BaseVehicle.RespawnRotation
BaseVehicle.IdleRespawnDelay
BaseVehicle.Blow(Boolean)
BaseVehicle.GetOccupant(Seat)
BaseVehicle.ResetExplosionTime()
BaseVehicle.ResetIdleTime()
BaseVehicle.Spawn(Vector3, Vector3)
BaseVehicle.Spawn(Vector3)
BaseVehicle.Respawn()
BaseVehicle.OnDamage
BaseVehicle.OnCollisionShapeHit
BaseVehicle.OnCollisionShapeLeave
BaseVehicle.OnEnter
BaseVehicle.OnExit
BaseVehicle.OnStartEnter
BaseVehicle.OnStartExit
BaseVehicle.OnExplode
BaseVehicle.OnRespawn
SharedVehicle.PrimaryColor
SharedVehicle.SecondaryColor
SharedVehicle.Colors
SharedVehicle.HeadLightColor
SharedVehicle.Name
SharedVehicle.MaxPassengers
SharedVehicle.EngineRunning
SharedVehicle.Handling
SharedVehicle.OverrideLights
SharedVehicle.Paintjob
SharedVehicle.PlateText
SharedVehicle.VehicleType
SharedVehicle.Upgrades
SharedVehicle.IsBlown
SharedVehicle.DamageProof
SharedVehicle.FuelTankExplodable
SharedVehicle.Locked
SharedVehicle.IsOnGround
SharedVehicle.DoorsUndamagable
SharedVehicle.WheelState
SharedVehicle.VehicleTowedByThis
SharedVehicle.Fix()
SharedVehicle.DetachTowedVehicle(SharedVehicle)
SharedVehicle.DetachAnyTowedVehicle()
SharedVehicle.AddUpgrade(Upgrade)
SharedVehicle.GetCompatibleUpgrades(UpgradeSlot)
SharedVehicle.GetCompatibleUpgrades()
SharedVehicle.GetUpgradeOnSlot(UpgradeSlot)
SharedVehicle.RemoveUpgrade(Upgrade)
SharedVehicle.GetDoorOpenRatio(Door)
SharedVehicle.SetDoorOpenRatio(Door, Single, Int32)
SharedVehicle.GetDoorState(Door)
SharedVehicle.SetDoorState(Door, DoorState)
SharedVehicle.GetLightState(Light)
SharedVehicle.SetLightState(Light, LightState)
SharedVehicle.GetPanelDamage(Panel)
SharedVehicle.SetPanelDamage(Panel, DamageLevel)
PhysicalElement.Dimension
PhysicalElement.Interior
PhysicalElement.Frozen
PhysicalElement.Alpha
PhysicalElement.Health
PhysicalElement.Model
PhysicalElement.CollisionShape
PhysicalElement.CollisionsEnabled
PhysicalElement.LowLODElement
PhysicalElement.DoubleSided
PhysicalElement.IsInWater
PhysicalElement.IsLowLOD
PhysicalElement.Position
PhysicalElement.Rotation
PhysicalElement.QuaternionRotation
PhysicalElement.Matrix
PhysicalElement.ForwardVector
PhysicalElement.RightVector
PhysicalElement.UpVector
PhysicalElement.Velocity
PhysicalElement.AngularVelocity
PhysicalElement.AngularQuaternionVelocity
PhysicalElement.ToAttached
PhysicalElement.IsAttached
PhysicalElement.IsWithinCollisionShape(CollisionShape)
PhysicalElement.IsWithinMarker(SharedMarker)
PhysicalElement.AttachTo(PhysicalElement, Matrix4x4)
PhysicalElement.AttachTo(PhysicalElement, Vector3, Vector3)
PhysicalElement.AttachTo(PhysicalElement, Vector3, Quaternion)
PhysicalElement.AttachTo(PhysicalElement)
PhysicalElement.Detach()
PhysicalElement.Offset
PhysicalElement.GetWithinRange(Vector3, Single, String)
PhysicalElement.FaceElement(PhysicalElement)
PhysicalElement.OnClicked
PhysicalElement.OnModelChange
PhysicalElement.OnStartSync
PhysicalElement.OnStopSync
PhysicalElement.OnStreamIn
PhysicalElement.OnStreamOut
Element.element
Element.Root
Element.MTAElement
Element.Type
Element.ID
Element.Exists
Element.ChildCount
Element.Parent
Element.CallPropagationEnabled
Element.SetData(String, Object, Boolean)
Element.GetData(String, Boolean)
Element.TryGetData(String, Object, Boolean)
Element.GetData<T>(String, Boolean)
Element.TryGetData<T>(String, T, Boolean)
Element.Destroy()
Element.GetChild(Int32)
Element.GetChildren(String)
Element.GetByID(String, Int32)
Element.ListenForEvent(String, Boolean, String)
Element.HandleEvent(String, MtaElement, Object, Object, Object, Object, Object, Object, Object, Object)
Element.OnDestroy
Object.Equals(Object)
Object.Equals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
Object.ReferenceEquals(Object, Object)
Object.ToString()
Namespace: Slipe.Server.Vehicles
Assembly: SlipeServer.dll
Syntax
[DefaultElementClass(ElementType.Vehicle)]
public class Vehicle : BaseVehicle

Constructors

| Improve this Doc View Source

Vehicle(VehicleModel, Vector3)

Create a vehicle from a model at a position

Declaration
public Vehicle(VehicleModel model, Vector3 position)
Parameters
Type Name Description
VehicleModel model
Vector3 position
| Improve this Doc View Source

Vehicle(VehicleModel, Vector3, Vector3, String, Int32, Int32)

Create a vehicle using all createVehicle arguments

Declaration
public Vehicle(VehicleModel model, Vector3 position, Vector3 rotation, string numberplate = "", int variant1 = 1, int variant2 = 1)
Parameters
Type Name Description
VehicleModel model
Vector3 position
Vector3 rotation
String numberplate
Int32 variant1
Int32 variant2

Extension Methods

ElementExtensions.SetVisibleTo(Element, Element, Boolean)
ElementExtensions.ClearVisibleTo(Element)
ElementExtensions.IsVisibleTo(Element, Element)
ElementExtensions.Clone(Element, Vector3)
ElementExtensions.GetZoneName(PhysicalElement, Boolean)
ElementExtensions.GetSyncer(PhysicalElement)
ElementExtensions.SetSyncer(PhysicalElement, Player)
  • Improve this Doc
  • View Source
Back to top Generated by DocFX