# Exports

## 1. AddJobDocument (Server-Side)

{% code lineNumbers="true" %}

```lua
CreateThread(function()
	exports['redutzu-documents-esx']:AddJobDocument('mechanic', {
		colors = {
			background = 'rgb(255, 255, 255, .9)',
			header = 'rgb(255, 255, 255, .7)'
		},
		command = {
			enabled = true,
			name = '+mechanic_document',
			description = 'Display your document to nearby players'
		},
		item = {
			enabled = true,
			name = 'mechanic-card'
		},
		prop = {
			name = 'prop_fib_badge'
		},
		animation = {
			dict = 'paper_1_rcm_alt1-9',
			anim = 'player_one_dual-9',
			bone_index = 28422
		},
		information = {
			{ label = 'Job', value = 'job.label' },
			{ label = 'Grade', value = 'job.grade_label' },
			{ label = 'Date of birth', value = 'variables.dateofbirth' }
		},
		range = 5.0,
		time = 4.0
	})
end)
```

{% endcode %}

## 2. CreateCustomDocument (Server-Side)

{% code lineNumbers="true" %}

```lua
RegisterCommand('custom-document', function(source, args, raw)
   exports['redutzu-documents-esx']:CreateCustomDocument(source, {
       information = {
          { label = 'Job', value = 'job.label' },
          { label = 'Rank', value = 'job.grade_label' },
          { label = 'Date of birth', value = 'variables.dateofbirth' }
       },
       removeBackground = true
   })
end, false)
```

{% endcode %}

<figure><img src="/files/eDPlMlJwPz0B0CXgBaQG" alt=""><figcaption><p>This is how the document created using the code above will look</p></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.redutzu.com/resources/redutzu-documents/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.
