PoisonCode Docs
TebexDiscordYoutube
  • SCRIPTS
    • 💡pc_collections
      • ✨Features
      • 🖥️Installation & dependencies
      • 🛠️Exports & events
      • ⚙️Open files preview
      • 🔧Tutorials
      • 📥Updates
        • 🤔How to update
        • 🔌Version compatibility
    • 💎pc_organizations
      • ✨Features
      • 🖥️Installation & dependencies
      • 🛠️Exports & events
      • ⚙️Open files preview
      • 🔧Tutorials
      • 📥Updates
        • 🤔How to update
        • 🔌Version compatibility
    • 💡pc_skills
      • ✨Features
      • 🖥️Installation & dependencies
      • 🛠️Exports & events
      • ⚙️Open files preview
      • 🔧Tutorials
      • 📥Updates
        • 🤔How to update
    • 📦pc_airdrop
      • ✨Features
      • 🖥️Installation & dependencies
      • ⚙️Open files preview
      • 🔧Tutorials
      • 📥Updates
        • 🤔How to update
    • 💬pc_notifications
      • ✨Features
      • 🖥️Installation & dependencies
      • 🕹️Usage
Powered by GitBook
On this page
  • Client side
  • Server side

Was this helpful?

  1. SCRIPTS
  2. pc_organizations

Exports & events

Exports and events available in this resource

Client side

Opening organization tablet
TriggerEvent("pc_organizations:OpenTablet")
exports.pc_organizations:openTablet()

Opens the organization tablet for triggering player.

Checking for organization job
exports.pc_organizations:hasOrgJob()

returns: If player is a part of organization returns organization name (string) else returns false (boolean)

Server side

Opening organization tablet
TriggerEvent("pc_organizations:OpenTablet", player)
exports.pc_organizations:openTablet(player)

• player - playerId - id of the player you want to check

Opens the organization tablet for player with given id.

Checking for organization job
exports.pc_organizations:hasOrgJob(player)

• player - playerId - id of the player you want to check

returns: If player is a part of organization returns organization name (string) else returns false (boolean)

PreviousInstallation & dependenciesNextOpen files preview

Last updated 4 months ago

Was this helpful?

💎
🛠️