# Player Documents

> View identity, license and service cards, customize their appearance, and configure department service numbers.

## Identity and license cards

Open **Player interactions → Documents → View identity** or the license action in the Radial.
The identity card shows the selected character's name, date of birth, gender and height
when supplied by the framework. The license card shows name, photo and selected held licenses.
Missing information stays unavailable; an empty list does not create a license.

The portrait captures a local copy of the player's current appearance without hat or glasses.
The real ped is not changed. Photos are cached only on the viewing client for five minutes,
with up to 32 character entries; character unload and resource stop clear the cache.
No photo is uploaded or stored in a database. A neutral portrait remains if capture fails.
Both cards omit signatures. Long license lists scroll independently using the mouse wheel
over the list, the visible scrollbar, or Tab followed by the arrow keys.
The bottom data zone restyles the respective card's fields. It does not generate a document number,
expiry date or check digits, and is not a validated ICAO machine-readable document.
There are no close buttons. Press **Return / Enter** or **Escape** to close a shared card.
It also closes automatically after **60 seconds** by default. A client export can set a
shorter duration. Moving the card through configuration does not restart that timer.

<callout color="warning" icon="i-lucide-info">

This page describes the new document-card update. Install the update containing
`Config.PlayerIdentityCard` and these exports before using the examples.
Older resource packages do not expose the new exports.

</callout>

## Access and integrations

Viewing your own document does not require a job inspection permission. Inspecting another
player requires the corresponding **identity** or **licenses** permission, including the
configured job, grade and duty rules. Both players must be within **2.5 metres** and in the
same routing bucket. The target must be restrained by Jobs Base (handcuffs or zip ties).
This also applies to Crime and Creator job profiles. The server rechecks the selected
character, restraints and access after provider work.
Document inspection does not ask for consent.

Native integrations for `jsfour-idcard`, `um-idcard` and `qbx_idcard` remain available through
`config/player_actions.lua`. An authorized native card opens its provider's interface.
The settings below apply to the shared card, not an external interface. Document inspection
does not create, renew, consume or transfer card items and does not grant licenses.

<span id="presentowndocumentdocumenttype-recipientserverid">



</span>



## Show your document to someone

Use **Player interactions → Documents** in the radial menu to show your card to a
selected player. They must be within **2.5 metres**, in the same routing bucket, and
have no other focused menu. You cannot present a document while restrained.
This displays the shared card without transferring an inventory item.

To present it from a client script, use `PresentOwnDocumentToPlayer` for one person
or `PresentOwnDocumentNearby` for the players around you. This example includes your own
screen and closes the card after five seconds:

```lua
local success, openedCount, reason = exports["sky_jobs_base"]:PresentOwnDocumentNearby("identity", {
    includeSelf = true,
    durationMs = 5000,
})
```

See the [document exports](/docs/base/jobs-base/client-exports/documents) for each
action, options and legacy names.

## Position, size and optional branding

In `/jobconfig`, choose **Jobs Base → Player interactions → Identity card**.
Saved configurator values take precedence over file defaults.
If `Config.UseIngameConfigurator` is disabled, edit `Config.PlayerIdentityCard` in
`sky_jobs_base/config/config.lua` instead.

<table>
<thead>
  <tr>
    <th>
      Setting
    </th>
    
    <th>
      Values and behaviour
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        enabled
      </code>
    </td>
    
    <td>
      Master switch for Sky's document actions and exports; default <code>
        true
      </code>
      
      . Set <code>
        false
      </code>
      
       when another resource owns your documents.
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        serviceEnabled
      </code>
    </td>
    
    <td>
      Service-card and service-number management switch; default <code>
        true
      </code>
      
      . Set <code>
        false
      </code>
      
       to keep identity/licenses while disabling service IDs.
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        position
      </code>
    </td>
    
    <td>
      <code>
        left
      </code>
      
      , <code>
        center
      </code>
      
      , <code>
        right
      </code>
      
       or <code>
        custom
      </code>
      
      ; default <code>
        right
      </code>
      
      .
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        x
      </code>
      
      , <code>
        y
      </code>
    </td>
    
    <td>
      Card centre in screen percentages, 0–100; used for <code>
        custom
      </code>
      
      .
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        scale
      </code>
    </td>
    
    <td>
      Size in percent, 50–150; default <code>
        85
      </code>
      
      . It also fits smaller viewports.
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        issuer
      </code>
    </td>
    
    <td>
      Optional issuer name. Empty by default.
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        logo
      </code>
    </td>
    
    <td>
      Optional filename inside <code>
        config/documents
      </code>
      
      , such as <code>
        logo.svg
      </code>
      
      . Empty by default.
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        licenseTypes
      </code>
    </td>
    
    <td>
      Exact license type IDs visible on Sky's license card. Default: <code>
        dmv
      </code>
      
      , <code>
        drive
      </code>
      
      , <code>
        drive_bike
      </code>
      
      , <code>
        drive_truck
      </code>
      
      , <code>
        driver
      </code>
      
      , <code>
        weapon
      </code>
      
      , <code>
        business
      </code>
      
      . Use <code>
        { "*" }
      </code>
      
       for all held types; an empty list hides all.
    </td>
  </tr>
</tbody>
</table>

Logo filenames cannot be URLs or directory paths. Use letters, numbers, hyphens or underscores
followed by a file extension. No Sky logo, watermark or issuer text appears by default.
Live configuration changes update an open shared card without changing its person or focus.
Disabling a feature closes its open card and removes the related radial/target actions.
The server rejects disabled document requests and presentation offers. Independent external
resources retain their own interfaces and actions.
Reopen the card after changing `licenseTypes`. Filtering never grants or removes licenses,
and does not change an external provider's own card contents.

## Editable appearance

<table>
<thead>
  <tr>
    <th>
      File
    </th>
    
    <th>
      Purpose
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        config/documents/identity.css
      </code>
    </td>
    
    <td>
      Both layouts, printed colours, typography, spacing and template dimensions. Use <code>
        .sky-license-card
      </code>
      
       for license-specific changes.
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        config/documents/logo.svg
      </code>
    </td>
    
    <td>
      Replace the artwork, or add another local logo file and select it in configuration.
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        config/locales/<language>.lua
      </code>
    </td>
    
    <td>
      Card titles and field labels under <code>
        Nui.playerActions
      </code>
      
      .
    </td>
  </tr>
</tbody>
</table>

Editable CSS loads from the resource after the built-in default stylesheet.
After changing CSS, fonts, artwork or locales, restart Jobs Base and its active dependent jobs
through your normal update process. CSS and artwork changes need no frontend rebuild.
Changing the Vue component's markup does require a frontend rebuild.

## Service IDs

See [Service IDs and Numbers](./service-ids-and-numbers) for department templates, persistent numbers, Boss Menu assignment, Creator jobs and database installation.

<span id="number-persistence-and-installation">



</span>
