> ## Documentation Index
> Fetch the complete documentation index at: https://docs.markz3d.com/llms.txt
> Use this file to discover all available pages before exploring further.

# GetPlayersInRobbery

Returns a table with all the players inside the robbery, this doesnt 100% means that they are robbers but only that they are near/in the robbery location (physically)

<Tabs>
  <Tab title="Parameters">
    <div class="rounded-lg overflow-hidden">
      <table class="not-prose w-full rounded-lg text-sm text-left rtl:text-right text-gray-500 dark:text-gray-400">
        <thead class="thead text-xs text-gray-700 uppercase bg-gray-50 dark:bg-gray-700 dark:text-gray-400">
          <tr>
            <th scope="col" class="px-6 py-3 whitespace-nowrap">
              Name
            </th>

            <th scope="col" class="px-6 py-3 whitespace-nowrap">
              Type
            </th>

            <th scope="col" class="px-6 py-3 whitespace-nowrap">
              Default
            </th>

            <th scope="col" class="px-6 py-3 whitespace-nowrap">
              Description
            </th>
          </tr>
        </thead>

        <tbody>
          <tr class="body-item bg-white border-b dark:bg-gray-800 dark:border-gray-700 border-gray-200">
            <td class="px-6 py-4">id</td>
            <td class="px-6 py-4">number</td>

            <td class="px-6 py-4" />

            <td class="px-6 py-4">The store id (only 1 for now)</td>
          </tr>
        </tbody>
      </table>
    </div>
  </Tab>

  <Tab title="Returns">
    <div class="rounded-lg overflow-hidden">
      <table class="not-prose w-full rounded-lg text-sm text-left rtl:text-right text-gray-500 dark:text-gray-400">
        <thead class="thead text-xs text-gray-700 uppercase bg-gray-50 dark:bg-gray-700 dark:text-gray-400">
          <tr>
            <th scope="col" class="px-6 py-3 whitespace-nowrap">
              Name
            </th>

            <th scope="col" class="px-6 py-3 whitespace-nowrap">
              Type
            </th>

            <th scope="col" class="px-6 py-3 whitespace-nowrap">
              Default
            </th>

            <th scope="col" class="px-6 py-3 whitespace-nowrap">
              Description
            </th>
          </tr>
        </thead>

        <tbody>
          <tr class="body-item bg-white border-b dark:bg-gray-800 dark:border-gray-700 border-gray-200">
            <td class="px-6 py-4">players</td>
            <td class="px-6 py-4">table</td>

            <td class="px-6 py-4" />

            <td class="px-6 py-4">A table of all players inside the robbery (server id)</td>
          </tr>
        </tbody>
      </table>
    </div>
  </Tab>
</Tabs>

# Example

```lua theme={null}
local players = exports["utility_jewelry"]:GetPlayersInRobbery(1)

for k,v in pairs(players) do
    print("The player "..GetPlayerName(v).." ("..v..") is inside the robbery")
end
```
