Show / Hide Table of Contents

Class Pickup

Class for a GTA pickup

Inheritance
Object
Element
PhysicalElement
SharedPickup
Pickup
Inherited Members
SharedPickup.PickupType
SharedPickup.Ammo
SharedPickup.WeaponModel
SharedPickup.Amount
SharedPickup.Morph(PickupType, Int32, Int32)
SharedPickup.Morph(SharedWeaponModel, Int32)
SharedPickup.Morph(PickupModel)
SharedPickup.Morph(Int32)
SharedPickup.OnHit
SharedPickup.OnLeave
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.Pickups
Assembly: SlipeServer.dll
Syntax
[DefaultElementClass(ElementType.Pickup)]
public class Pickup : SharedPickup

Constructors

| Improve this Doc View Source

Pickup(Vector3, PickupModel, Int32)

Creates a custom model pickup

Declaration
public Pickup(Vector3 position, PickupModel model, int respawnTime = 30000)
Parameters
Type Name Description
Vector3 position
PickupModel model
Int32 respawnTime
| Improve this Doc View Source

Pickup(Vector3, PickupType, Int32, Int32, Int32)

Creates a pickup from all CreatePickup variables

Declaration
public Pickup(Vector3 position, PickupType type, int amount, int respawnTime = 30000, int ammo = 50)
Parameters
Type Name Description
Vector3 position
PickupType type
Int32 amount
Int32 respawnTime
Int32 ammo
| Improve this Doc View Source

Pickup(Vector3, SharedWeaponModel, Int32, Int32)

Creates a weapon pickup

Declaration
public Pickup(Vector3 position, SharedWeaponModel weapon, int ammo = 50, int respawnTime = 30000)
Parameters
Type Name Description
Vector3 position
SharedWeaponModel weapon
Int32 ammo
Int32 respawnTime
| Improve this Doc View Source

Pickup(Vector3, Int32)

Creates a model pickup from any model ID

Declaration
public Pickup(Vector3 position, int model)
Parameters
Type Name Description
Vector3 position
Int32 model

Properties

| Improve this Doc View Source

IsSpawned

Get if this pickup is currently spawned

Declaration
public bool IsSpawned { get; }
Property Value
Type Description
Boolean
| Improve this Doc View Source

RespawnInterval

Gets and sets the respawn interval

Declaration
public int RespawnInterval { get; set; }
Property Value
Type Description
Int32

Methods

| Improve this Doc View Source

Use(Player)

Have a player use this pickup

Declaration
public bool Use(Player player)
Parameters
Type Name Description
Player player
Returns
Type Description
Boolean

Events

| Improve this Doc View Source

OnSpawn

Declaration
public event Pickup.OnSpawnHandler OnSpawn
Event Type
Type Description
Pickup.OnSpawnHandler
| Improve this Doc View Source

OnUse

Declaration
public event Pickup.OnUseHandler OnUse
Event Type
Type Description
Pickup.OnUseHandler

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