🦥
Project Sloth
  • 🦥Project Sloth
  • ⭐Server Hosting | 1 of 1 Servers
  • Scripts
    • ❤️ps-hud
      • Installation Guide
      • Previews
    • 🪄ps-buffs
      • Available Buffs
      • Creduts
    • 👮ps-dispatch
      • Installation
      • Using Exports
        • Creating New Alerts
          • Using your or our Exports
    • 💻ps-mdt
      • Installation
      • Showcase
      • Credits
    • 👾ps-ui
      • Circle Minigame
      • Number Maze
      • VAR
      • Thermite
      • Scrambler
      • Display Text
      • Status UI
      • Menus
      • Input
      • Show Image
      • Show Notification
    • 🌱ps-drugprocessing
      • Previews
    • ⛽ps-fuel
      • Installation Guide
      • Features
      • Showcase
    • 🚞ps-objectspawner
      • Installation Guide
      • Features
      • Showcase
      • Credits
    • 🚓ps-liveries
      • Showcase
      • Credits
    • 🏠ps-housing
      • Installation
      • Features
      • Showcase
      • Adding Shells
      • Migration
      • Credits
    • ⚙️ps-discord
      • Installation
      • Convars
      • Exports
      • Credits
    • 📚ps-lib
      • Install Guide
      • Dependencies & Load Order
        • How to use the lib
      • Bridge
        • Emotes
          • Client
            • playEmote
            • cancelEmote
        • Framework
          • Server
            • Players
              • getPlayer
              • getPlayerByIdentifier
              • getOfflinePlayer
              • getLicense
              • getIdentifier
              • getSource
              • getPlayerName
              • getPlayerNameByIdentifier
              • getPlayerData
              • getMetadata
              • getCharInfo
              • getNearbyPlayers
              • setJob
              • setJobDuty
              • addMoney
              • removeMoney
              • getMoney
              • isOnline
            • Jobs
              • Player Current Jobs
                • getJob
                • getJobName
                • getJobType
                • getJobDuty
                • getJobData
                • getJobGrade
                • getJobGradeLevel
                • getJobGradeName
                • getJobGradePay
                • isBoss
                • setJob
                • setJobDuty
              • get Shared Jobs
                • getSharedJob
                • getSharedJobGrade
                • getJobTable
                • jobExists
                • getSharedJobData
                • getSharedJobRankData
            • Checks and Balances
              • getEntityCoords
              • getDistance
              • checkDistance
              • hasPermission
              • vehicleOwner
            • Get From Server
              • getAllPlayers
              • getNearbyPlayers
              • getJobCount
              • getJobTypeCount
              • getAllJobs
              • getAllGangs
              • vehicleOwner
              • getSharedVehicle
              • getSharedVehicleData
              • getSharedWeapons
              • getSharedWeaponData
            • Gangs
              • getGang
              • getGangName
              • getGangData
              • getGangGrade
              • getGangGradeLevel
              • getGangGradeName
              • isLeader
              • Shared Gang
                • getSharedGang
                • getSharedGangData
                • getSharedGangRankData
          • Client
            • Functions
              • getPlayerData
              • getIdentifier
              • getMetadata
              • getCharInfo
              • getPlayerName
              • getPlayer
              • getVehicleLabel
              • isDead
              • getJob
              • getJobName
              • getJobType
              • isBoss
              • getJobDuty
              • getJobData
              • getGang
              • getGangName
              • isLeader
              • getGangData
              • getCoords
              • getMoneyData
              • getMoney
              • getAllMoney
        • Inventory
          • Client
            • getImage
            • getLabel
            • hasItem
          • Server
            • removeItem
            • addItem
            • openStash
            • hasItem
            • getFreeWeight
            • openInventoryById
            • clearInventory
            • clearStash
            • getItemCount
            • getItemByName
            • getItemsByNames
            • ps.createShop(source, shopData)
            • verifyRecipe
            • craftItem
            • createUseable
        • Menus
          • Client
            • menu
            • closeMenu
            • input
        • Targets
          • boxTarget
          • circleTarget
          • entityTarget
          • targetModel
          • destroyAllTargets
          • destroyTarget
      • Modules
        • Callbacks
          • registerCallback
          • callback
        • animations
        • registerCommand
        • Copy Clipboard
        • getNear
          • getNearestPlayers
          • getNearestPed
          • getNearestVehicle
          • getNearestObject
          • getNearestObjectOfType
          • getNearbyPed
          • getNearbyVehicles
          • getNearbyObjects
        • Interactions
          • Client
            • drawText
            • hideText
            • notify
            • progressBar
            • minigame
          • Server
            • notify
        • Keybinds
          • Client
            • addKeyBind
            • removeKeybind
        • Miscallaneous
          • Shared
            • sorter
            • concat
            • string
            • decimalRound
            • random
            • tableContains
        • PS-UI
          • Minigames
            • VarHack
            • Thermite
            • Scrambler
            • Maze
            • Circle
          • Ui
            • Context Menu
            • Coord Grabber
            • Show Image
            • DrawText
            • Input
            • Crafting
              • server side
              • client side
        • Raycast
          • Client
            • Raycast
        • Requests
          • Client
            • requestModel
            • requestAnim
            • requestPTFX
        • Streamed_assets
          • Shared
            • Objects
            • Peds
            • Vehicle
        • Game Time
          • Client
            • getGameTime24
            • getGameTime12
        • Vehicle Cache
          • Client
            • Cache Data
          • Server
            • Cache Data
        • Version Check
          • Server
            • versionCheck
  • ❓FAQ
    • Frequently Asked Questions
      • Warnings
      • PS-HUD
      • PS-DISPATCH
      • PS-MDT
      • PS-UI
      • PS-DRUGPROCESSING
      • PS-OBJECTSPAWNER
      • PS-LIVERIES
Powered by GitBook
On this page
  1. Scripts
  2. 📚ps-lib
  3. Bridge
  4. Framework
  5. Server
  6. Jobs
  7. get Shared Jobs

getJobTable

PreviousgetSharedJobGradeNextjobExists

Last updated 23 days ago

CtrlK

Description

Returns the entire job table from your framework, which includes all available jobs and their configurations such as labels, grades, types, and permissions.

This is useful for iterating through all jobs or checking job data without referencing a specific player.

Parameters

  • None

Return Value

  • Returns the full Job List table containing all job definitions.

  • This table typically includes keys like "police", "ambulance", "mechanic", etc., each mapping to their respective job configuration.

Example Use Case

local jobs = ps.getJobTable()
for jobName, jobData in pairs(jobs) do
    print("Job Name: " .. jobName)
    print("Job Label: " .. jobData.label)
end