> For the complete documentation index, see [llms.txt](https://randolio.gitbook.io/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://randolio.gitbook.io/docs/paid-scripts/news-job.md).

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