Next Scripts
  • Introduction
  • PAID RESOURCES
    • 📦Job Creator
      • Installation
      • Configuration
        • Client Configuration
        • Server Configuration
      • Exports
        • Client Exports
        • Server Exports
      • Commands
      • FAQ
    • 🍂 Drug System
      • Installation
      • Configuration
    • 📢 Notify
      • Installation
      • Configuration
      • Exports
        • Client Exports
        • Server Exports
    • 🎇 Event Tablet
      • Installation
      • Configuration
  • FREE RESOURCES
    • 🍁 Npc Drug Sells
      • Installation
      • Configuration
    • 👆🏻 Targeting
      • Installation
      • Configuration
      • Client Exports
      • Examples
    • 💻 Dispatch
      • Installation
      • Client Exports
      • Server Exports
      • Commands
Powered by GitBook
On this page
  • GetPlayerJobs
  • OpenBossMenu
  • HasJob
  • SetJobGrade
  • GetJobGrade
  • GetNJob
  • GetFirstJob
  • SetJob
  • RemoveJob
  • GetJobLabel
  • GetGradeLabel
  1. PAID RESOURCES
  2. Job Creator
  3. Exports

Client Exports

GetPlayerJobs

Return a table with player jobs

exports.jobcreator:GetPlayerJobs()

Return:

  • jobs: table containing:

    • grade

    • name

    • atwork (1 is in service, else 0)


OpenBossMenu

Open the built-in boss benu for a specific job

exports.jobcreator:OpenBossMenu(jobname)
  • jobname: string


HasJob

Check if a player has a job

exports.jobcreator:HasJob(jobname)
  • jobname: string

Return:

  • true success

  • false insuccess


SetJobGrade

Set the grade for the job

exports.jobcreator:SetJobGrade(jobname, grade)
  • jobname: string

  • grade: number

Return:

  • true success

  • false insuccess


GetJobGrade

Returns the job grade, else -1

exports.jobcreator:GetJobGrade(jobname)
  • jobname: string

Return:

  • grade: number


GetNJob

Returns the n-th job from player jobs

exports.jobcreator:GetNJob(nth)
  • nth: number

Return:

  • job: table containing:

    • grade

    • name

    • atwork (1 is in service, else 0)


GetFirstJob

Return the first job of the player

exports.jobcreator:GetFirstJob()

Return:

  • job: table containing:

    • grade

    • name

    • atwork (1 is in service, else 0)


SetJob

Add a new job to a player if at least one is free

exports.jobcreator:SetJob(jobname, grade)
  • jobname: string

  • grade: number


RemoveJob

Remove a specified job from players's job

exports.jobcreator:RemoveJob(jobname)
  • jobname: string


GetJobLabel

Return the Label of a specific job

exports.jobcreator:GetJobLabel(jobname)
  • jobname: string

Return:

  • jobLabel: string


GetGradeLabel

Return the Label of a specific grade of a job

exports.jobcreator:GetGradeLabel(jobname, grade)
  • jobname: string

Return:

  • gradeLabel: string


PreviousExportsNextServer Exports

Last updated 1 year ago

📦