# News Job

## Client Exports

#### Custom Alert Example:

<pre class="language-lua"><code class="lang-lua">local coords = GetEntityCoords(PlayerPedId())
<strong>exports.randol_newsjob:SendAlert({
</strong>    title = 'FLEECA BANK ROBBERY',
    coords = coords,
    description = 'An alarm has been tripped at Fleeca Bank on Hawick Avenue.',
    icon = 'fa-building-columns',
    blip = { sprite = 272, label = 'Bank Robbery', color = 1, scale = 1.2, flash = true}
})
</code></pre>

#### Preset Alert:

```lua
-- coords is optional. If not defined, it'll grab the ped's coords.
exports.randol_newsjob:ShotsFired(coords)
```

#### Return exports:

```lua
exports.randol_newsjob:isOverlayDisplayed() -- returns boolean
exports.randol_newsjob:isCameraActivated() -- returns boolean
```

## Reporter Tools

#### Default keybind is F9. Can be changed in your FiveM settings.

{% embed url="<https://r2.fivemanage.com/image/CdfqcjCe54cg.png>" %}

## Server Exports

If you wish to use the news stand feature, you must implement this server side export into your jail script where a player gets sent to jail. If you cannot provide a reason, it will default to 'undisclosed'. I will not help you with this, it's relatively simple.

```lua
exports.randol_newsjob:SentToJail(id, time, reason)
```


---

# 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://randolio.gitbook.io/docs/paid-scripts/news-job.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.
