Skip to content
Necroso edited this page Oct 10, 2022 · 5 revisions

Pickup


Class Static Functions

  • Pickup.type() — Returns Pickup type (string "Pickup")
  • Pickup.findByID(int id) — Returns a Pickup with the matching id, nil otherwise
  • Pickup.count() — Returns the total number of Pickup instances right now (Pickup count)
  • Pickup.getActive() — Returns a table of all pickups

Constructor(s)

Pickup:new(int model, int world, int quantity, table position, int alpha, bool isAuatomatic)
Pickup:new(int model, int world, int quantity, float x, float y, float z, int alpha, bool isAuatomatic)

Read-Only Methods

  • getType() — Returns the entity type (Same as static)
  • getID() — Return Pickup's ID
  • getModel() — Return Pickup's Model

Methods

  • destroy() — Destroys and deletes the Pickup
  • streamedForPlayer(Player player) — Is the Pickup streamed for player or not (bool)
  • respawn() — Respawn the Pickup
  • getOption(PickupOption option) — Get state of an option
  • setOption(PickupOption option) — Set state of an option

Properties

  • data — Table
  • position — Table
  • world — int
  • alpha — int
  • auto — int
  • autoTimer — int

General Example

Clone this wiki locally