Show / Hide Table of Contents

Class Trailer

Represents a towable trailer

Inheritance
Object
Element
PhysicalElement
SharedVehicle
BaseVehicle
Trailer
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
public class Trailer : BaseVehicle

Constructors

| Improve this Doc View Source

Trailer(TrailerModel, Vector3)

Create a plane from a model at a position

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

Trailer(TrailerModel, Vector3, Vector3, String, Int32, Int32)

Create a plane using all createVehicle arguments

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

Properties

| Improve this Doc View Source

TowingVehicle

Get and set the vehicle towing this trailer

Declaration
public BaseVehicle TowingVehicle { get; set; }
Property Value
Type Description
BaseVehicle

Methods

| Improve this Doc View Source

AttachTo(BaseVehicle)

Attach this trailer to a vehicle

Declaration
public bool AttachTo(BaseVehicle vehicle)
Parameters
Type Name Description
BaseVehicle vehicle
Returns
Type Description
Boolean

Events

| Improve this Doc View Source

OnAttach

Declaration
public event Trailer.OnAttachHandler OnAttach
Event Type
Type Description
Trailer.OnAttachHandler
| Improve this Doc View Source

OnDetach

Declaration
public event Trailer.OnDetachHandler OnDetach
Event Type
Type Description
Trailer.OnDetachHandler

Operators

| Improve this Doc View Source

Explicit(Vehicle to Trailer)

Declaration
public static explicit operator Trailer(Vehicle vehicle)
Parameters
Type Name Description
Vehicle vehicle
Returns
Type Description
Trailer

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