# Sharing & Job Access

## Key sharing

```lua
Config.ShareKeys = {
    Enabled = true,
    AllowReshare = false,
    DefaultDurationSeconds = 3600,
    PersistTemporaryKeys = true,
}
```

Player commands:

```text
/givekey [server id]
/revokekey [server id]
```

The player must use the current vehicle or a nearby vehicle within the configured share distance.

## Job access

Job access is empty by default to avoid unintended fleet access.

Example:

```lua
Config.JobAccess.police = {
    minGrade = 0,
    requireDuty = true,
    platePrefixes = { 'LSPD', 'POL' },
    models = { 'police', 'police2', 'police3' }
}
```

Job access can stay virtual so shared fleet vehicles do not generate large numbers of physical key items.
