Zyke Resources' Products
DiscordStore
  • Introduction
  • Common Issues
    • zyke_lib error
    • Lacking Entitlement
    • UI Not Working
    • Missing Files Via FTP
    • Resource Starting Sequence
    • Item Not Usable
    • Any other issues?
  • FAQ
  • Paid Resources
    • Consumables
      • Resource Description
      • Config
      • Exports & Events
      • Dependencies
      • Changelog
      • Guides
      • Setup
    • Smoking
      • Resource Description
      • Config
      • Exports & Events
      • Examples
      • Dependencies
      • Changelog
      • Test Server
      • Setup
    • Garages
      • Resource Description
      • Config
      • Exports & Events
      • Dependencies
      • Changelog
      • Setup
      • Common Issues
    • Drugdealer
      • Resource Description
      • Config
      • Exports & Events
      • Dependencies
      • Changelog
    • Crafting
      • Resource Description
      • Config
      • Exports & Events
      • Dependencies
      • Changelog
    • Plants
      • Resource Description
      • Config
      • Exports & Events
      • Dependencies
      • Changelog
    • Mugging
      • Resource Description
      • Config
      • Exports & Events
      • Changelog
    • Gangsystem
      • Resource Description
      • Config
      • Exports & Events
      • Examples
      • Dependencies
      • Changelog
  • Free Resources
    • Zyke Lib
      • Resource Description
      • Dependencies
      • Config
      • Setup
    • Status
      • Resource Description
      • Dependencies
      • Changelog
      • Setup
    • Propaligner
      • Resource Description
      • Exports & Events
      • Dependencies
      • Changelog
    • Vending Machines
      • Resource Description
      • Dependencies
      • Changelog
    • Sounds
      • Resource Description
      • Exports & Events
    • Key Minigame
      • Resource Description
      • Exports & Events
      • Changelog
    • Stabwheels
      • Resource Description
      • Dependencies
      • Changelog
    • Burncars
      • Resource Description
      • Dependencies
      • Changelog
    • Catalytic
      • Resource Description
      • Exports & Events
      • Config
      • Dependencies
      • Changelog
Powered by GitBook
On this page
  • Client Sided Exports
  • Transfer Item
  • Switch Placement
  • Is High
  • Has Walk Effect
  • Has Screen Effect
  • Get Amount In Smokeable
  • Get Battery In Vape
  • Get Water In Bong
  • Is Occupied
  • Server Sided Exports
  • Is Occupied
  • Server Sided Events
  • Transfer Item

Was this helpful?

  1. Paid Resources
  2. Smoking

Exports & Events

All exports and events available to integrate this resource into others.

PreviousConfigNextExamples

Last updated 5 months ago

Was this helpful?

Types & Classes

All types & classes can be found in shared/unlocked/types.lua.

Suggestions?

If you wish to have any exports and or events added, please head over to our and create a suggestion post. We are happy to allow for easier integration within other resources.

Client Sided Exports

Transfer Item

This export will find the closest player, and transfer the smokeable you currently have equipped to that player if it is within range. Example:

exports["zyke_smoking"]:TransferItem()

Switch Placement

Switches placement of your smokeable, if possible. Toggles between your hand and mouth. Example:

exports["zyke_smoking"]:SwitchItemPlacement()

Is High

Returns if you currently have any effect running from our resource. Example:

---@return boolean
exports["zyke_smoking"]:IsHigh()

Has Walk Effect

Returns if you currently have any walking effect because of your high. Example:

---@return boolean
exports["zyke_smoking"]:HasWalkEffect()

Has Screen Effect

Returns if you currently have any screen effect because of your high. Example:

---@return boolean
exports["zyke_smoking"]:HasScreenEffect()

Get Amount In Smokeable

Returns the amount you have left for your smokeable. Example:

---@return number | 0
exports["zyke_smoking"]:GetAmount()

Get Battery In Vape

Returns the battery level for your vape. Example:

---@return number | 0
exports["zyke_smoking"]:GetAmount()

Get Water In Bong

Returns the water level for your bong. Example:

---@return number | 0
exports["zyke_smoking"]:GetWater()

Is Occupied

Check if a player is currently occupied with any smokeable. Example:

---@return boolean
exports["zyke_smoking"]:IsOccupied()

Server Sided Exports

Is Occupied

Check if a player is currently occupied with any smokeable. Example:

---@param playerId integer
---@return boolean
exports["zyke_smoking"]:IsOccupied(playerId)

Server Sided Events

Transfer Item

Additional to the client sided export, you can trigger the transfer item event directly and transfer your smokeable. Example:

---@param targetId integer @Server id
TriggerServerEvent("zyke_smoking:TransferItem", targetId)
Discord