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
      • Exports & Events
      • 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
  • Server Sided Exports
  • Add To Status
  • Remove From Status
  • Auto To Status

Was this helpful?

  1. Free Resources
  2. Status

Exports & Events

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

PreviousResource DescriptionNextDependencies

Last updated 4 days ago

Was this helpful?

Types & Classes

All types & classes can be found in 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.

Status Names

When refering to a primary status name, it is the base name of the status. For multi statuses like being high on thc, the primary is "high" and the secondary is "thc". For non-multi statuses like "hunger", both the primary & secondary is "hunger". This is why a secondary name is not always required as input.

Client Sided Exports

Server Sided Exports

Add To Status

Adds an amount to a status. Example:

---@param plyId integer
---@param statusNames {[1]: PrimaryName, [2]?: SecondaryName}
---@param amount number
---@param skipEnsuring? boolean @Only skip if you have a pool with ensured players
exports["zyke_status"]:AddToStatus(plyId, statusNames, amount, skipEnsuring)

Remove From Status

Removes an amount from a status. Example:

---@param plyId integer
---@param statusNames {[1]: PrimaryName, [2]?: SecondaryName}
---@param amount number
---@param skipEnsuring? boolean @Only skip if you have a pool with ensured players
exports["zyke_status"]:RemoveFromStatus(plyId, statusNames, amount, skipEnsuring)

Auto To Status

Automatically choose add/remove based on amount Example:

---@param plyId integer
---@param statusNames {[1]: PrimaryName, [2]?: SecondaryName}
---@param amount number
---@param skipEnsuring? boolean @Only skip if you have a pool with ensured players
exports["zyke_status"]:AutoToStatus(plyId, statusNames, amount, skipEnsuring)
Discord