# qb-scoreboard

## Introduction

* Simple scoreboard resource that shows the total players online and the availability of robberies according to the configuration of total police needed

{% hint style="success" %}
Make sure to edit the total police required in this resource if you change it in one of the robbery scripts otherwise, they won't match!
{% endhint %}

## Preview

![](/files/O0c0gkKRt9CWsq4aUPvU)

## Configuration

```lua
Config = {}
Config.OpenKey = 'HOME' -- open scoreboard key
Config.ShowIDforALL = false -- enable any player to see player id's above head
Config.Toggle = true -- enable/disable toggle mode (hold key or press to show)
Config.MaxPlayers = GetConvarInt('sv_maxclients', 48) -- max server players
Config.IllegalActions = {
    ["storerobbery"] = { -- index is the robbery name
        minimumPolice = 2, -- minimum police needed for the indexed robbery
        busy = false, -- dynamically changes, don't edit
        label = "Store Robbery", -- label shown on the scoreboard UI
    },
    ["bankrobbery"] = {
        minimumPolice = 3,
        busy = false,
        label = "Bank Robbery"
    },
    ["jewellery"] = {
        minimumPolice = 3,
        busy = false,
        label = "Jewellery"
    },
    ["pacific"] = {
        minimumPolice = 5,
        busy = false,
        label = "Pacific Bank"
    },
    ["paleto"] = {
        minimumPolice = 4,
        busy = false,
        label = "Paleto Bay Bank"
    }
}
```


---

# 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://docs.qbcore.org/qbcore-documentation/qbcore-resources/qb-scoreboard.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.
