# Exports

#### 📦 Exports

The Police HR Tablet System provides a range of developer exports that allow you to access officer data, division structure, and permissions programmatically. These exports are ideal for integrating the HR system with other scripts such as MDTs, duty trackers, inventory systems, or admin panels.

Use them to enhance gameplay functionality, enforce role-based access, or build custom features around your department infrastructure.

<details>

<summary>Click to view Exports List</summary>

## 📦 Export: HR Tablet – Example Usage

The Police HR Tablet System includes useful exports so developers can interact with officer data, ranks, divisions, and permissions from other scripts like duty systems, MDTs, or menu UIs.

***

### ✅ Examples

#### 📛 Get Officer Rank

```lua
exports['evo-pd-hr']:GetPlayerRank(identifier, function(rank)
    print("Officer Rank:", rank)
end)
```

> Returns the officer's rank as a string (e.g., "Senior Officer").

***

#### 🏢 Get Officer Division Name

```lua
exports['evo-pd-hr']:GetPlayerDivision(identifier, function(division)
    print("Division:", division)
end)
```

> Returns the name of the division the player belongs to.

***

#### 🖼️ Get Officer Profile Picture

```lua
exports['evo-pd-hr']:GetProfilePicture(identifier, function(picture)
    print("Picture Path:", picture)
end)
```

> Returns the path or URL to the officer's profile photo.

***

#### 🔐 Get Personal Permissions

```lua
exports['evo-pd-hr']:GetPersonalPermissions(identifier, function(permissions)
    if permissions then
        print("Permissions:", json.encode(permissions))
    end
end)
```

> Returns a table of permission keys assigned to the officer (e.g., dashboard, employee, forms...).

***

#### 🧩 Get Division Rank Info

```lua
exports['evo-pd-hr']:GetPlayerRankInDivision(identifier, function(data)
    print(json.encode(data))
end)
```

> Returns the division\_id, rank\_name, and rank\_number of the officer’s division rank.

***

#### 📋 Get Division Rank Permissions

```lua
exports['evo-pd-hr']:GetDivisionRankPermissions("LSPD", 2, function(perms)
    print("Permissions for LSPD Rank 2:", json.encode(perms))
end)
```

> Returns the permission table for a specific division and rank number.

***

#### 🔍 Get Player’s Effective Division Permissions

```lua
exports['evo-pd-hr']:GetPlayerPermissionsInDivision(divisionID, identifier, function(perms)
    print("Division Permissions:", json.encode(perms))
end)
```

> Returns the permissions for the player's assigned rank in the given division.

***

</details>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://evo-development.gitbook.io/evo-development-docs/products/leotablet/exports.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
