> For the complete documentation index, see [llms.txt](https://piotreq-scripts.gitbook.io/piotreq-scripts/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://piotreq-scripts.gitbook.io/piotreq-scripts/assets-and-guides/police-job/client-exports/evidence-system.md).

# Evidence System

## checkGunPowder

Use following export to check if player has gun powder

```lua
local result = exports['p_policejob']:checkGunPowder()
print(result)
```

* Return:
  * result: `true | false`

***

## cleanGunPowder

Use following export to clean player gun powder

```lua
exports['p_policejob']:cleanGunPowder()
```

***

## createEvidence

Use following export to create custom evidence

```lua
local evidence = 'weed_sample'
local coords = vector3(0.0, 1.0, 2.0)
local metadata = {player = 'char1:123', weight = 10, quality = 'good'}
exports['p_policejob']:createEvidence(evidence, coords, metadata)
```

* evidence: `string`
  * Type of evidence from config
* coords: `vector3`
  * Coords of evidence
* metadata: `table`
  * Metadata of evidence, it will be shown in laboratory after analyze

***

## analyzeVehicle

Use following export to analyze vehicle interior \[works only inside vehicle and networked entity]

```lua
exports['p_policejob']:analyzeVehicle()

/analyzeVehicle
```
