# Documents

{% hint style="info" %}
This APP is built into av\_laptop, no need to download/install any extra resources.
{% endhint %}

The Documents app features a simple yet powerful text editor that allows you to easily create and save documents directly to your laptop. You can also generate templates and share them seamlessly with other players.

<figure><img src="/files/Ge7vOSPOMF3uxOWBHXfd" alt=""><figcaption></figcaption></figure>

### **Document Certification**

The Certification System verifies a document as an official record, ensuring it cannot be forged or duplicated. When a document is certified, the system injects a custom header and a unique serial number into the file.

To customize your certificates, navigate to `av_laptop/client/editable/documents.lua`.

#### **Configuration**

In this file, you will find the `allCertificates` table. You can add new entries using the following properties:

* Index Key (string): The name of the job authorized to use the certificate (e.g., `'police'`).
* grade (number): The minimum job rank/grade required to certify a document.
* header (string): The main title displayed on the certificate.
* subheader (string): The subtitle or legal disclaimer for the certificate.
* logo (string): The URL for the certificate's logo.

```lua
local allCertificates = {
    ['police'] = {
        grade = 1,
        header = "LOS SANTOS POLICE DEPARTMENT",
        subheader = "Certified LSPD Document",
        logo = "https://r2.fivemanage.com/QmVAYSlqeAlD4IxVbdvu5/lspd.png"
    },
    ['ambulance'] = {
        grade = 1,
        header = "STATE OF SAN ANDREAS",
        subheader = "Certified Medical Evaluation",
        logo = "https://r2.fivemanage.com/QmVAYSlqeAlD4IxVbdvu5/medical.png"
    },
}
```

{% hint style="info" %}
Do not use Discord links as they are unstable. We highly recommend hosting your images on services like Fivemanage to ensure permanent compatibility.
{% endhint %}

### **Local Files**

You can always choose to save a local copy of the document in your laptop, make sure to check the Save Copy option when saving the document or use the Save To Device button.

<figure><img src="/files/fEiMJ1BAPgJe9sWpViSy" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/GNgs7wdQrGsqwfjQCvyf" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
Local documents are non-editable and independent of the source. Updates to the original file are not reflected in local copies; a manual re-save is required to capture the latest changes.
{% endhint %}

### Templates

You can save documents as Templates, which is ideal for creating standardized frameworks—such as contracts—that can be populated with different information as needed. Templates can be shared with other players for their own use. Please note that Certifications are not shared; only authorized personnel can apply an official certificate to a document.

#### Share Document/Templates

Sharing files is seamless: simply open the Document or Template list and click the Share icon on the desired entry. This action automatically copies the document's unique identifier to your clipboard. Other players can then retrieve the document by pasting that ID into the Import by Identifier bar.

<figure><img src="/files/MFEuBUBA6l54JXqz90J4" alt=""><figcaption></figcaption></figure>


---

# 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://docs.av-scripts.com/laptop-pack-v3/laptop-v3/documents.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.
