Browse docs

Creator

Reference for Creator in sky_jobs_base.

All server exports

Creator

openCreatorByJob(source, jobKey)

  • Purpose: Opens the registered station creator for a player by job key after validating the creator permission.
  • Arguments:
    • source (number) - server ID of the player who should receive the creator UI.
    • jobKey (string) - registered job key.
  • Returns:
    • boolean - true on success.
    • string? - failure reason such as "creator_not_found" or "no_permission".
local ok, reason = exports["sky_jobs_base"]:openCreatorByJob(source, "mechanic")

openCreatorByJobWithoutPermission(source, jobKey)

  • Purpose: Opens the registered station creator for a player by job key without running the creator permission check. Use only from trusted server-side integrations that already authorized the player.
  • Arguments:
    • source (number) - server ID of the player who should receive the creator UI.
    • jobKey (string) - registered job key.
  • Returns:
    • boolean - true on success.
    • string? - failure reason such as "creator_not_found" or "invalid_source".
local ok, reason = exports["sky_jobs_base"]:openCreatorByJobWithoutPermission(source, "mechanic")