# 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
```


---

# 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://piotreq-scripts.gitbook.io/piotreq-scripts/assets-and-guides/police-job/client-exports/evidence-system.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.
