Browse docs

Permissions

Reference for Permissions in sky_jobs_base.

All server exports

Permissions

hasJobPermission(playerId, permission, jobName)

  • Purpose: Checks whether a player's grade has a boss-menu permission. Useful for external resources that gate features behind management permissions.
  • Arguments:
    • playerId (number) — the server ID of the player. Required.
    • permission (number | string) — Permission enum value or key name (e.g. 3 or "MANAGE_MEMBERS"). Required.
    • jobName (string?) — when set, the check additionally requires the player to be on this job.
  • Returns: boolean — true if the grade has the permission (or the ALL permission).

Permission Keys

VIEW_LOGS, MANAGE_ROLES, MANAGE_MEMBERS, MANAGE_WAREHOUSE, MANAGE_MONEY, EDIT_OUTFITS, CREATE_OUTFITS, DELETE_OUTFITS, PURCHASE_SUPPLIES, PURCHASE_VEHICLES, GARAGE_VEHICLES, SELL_VEHICLES, TABLET_APPS, DOCUMENT_CLASSIFICATIONS, ALL

if exports["sky_jobs_base"]:hasJobPermission(playerId, "MANAGE_MONEY", "ambulance") then
    -- allow external payout action
end