# 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="https://3888961119-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F05RazbdNthfRSFW8NmUV%2Fuploads%2FuJass48glRj45aywOdOI%2Fimage.png?alt=media&#x26;token=dfb41715-4070-4105-8ee6-413a3c2cdf78" alt=""><figcaption><p>This is how the document created using the code above will look</p></figcaption></figure>
