# Office Computers

The Office Computers editor allows you to create interactive computer setups inside the casino. Each setup is composed of three main parts: a table, chair, and computer object.

Players can approach the chair, sit down, and interact with the computer. By default, these computers are used by staff or administrators to view and control security cameras around the casino.

However, the computer interaction is fully configurable. Instead of cameras, it can trigger custom events, exports, or other scripted actions, allowing the computer to be used for various gameplay features.

<div data-full-width="false"><figure><img src="https://1037498771-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MZErcztD5BvrKnwRGJq%2Fuploads%2Fgit-blob-abe5930364bed823bc96d4aed0164005ad9462f1%2Fcapt_computers.png?alt=media" alt=""><figcaption></figcaption></figure></div>

### Editor Settings

<table data-full-width="false"><thead><tr><th>Setting</th><th>Type</th><th>Info</th></tr></thead><tbody><tr><td>Name</td><td>Text</td><td>Choose a display name for the computer setup</td></tr><tr><td>Notify text</td><td>Text</td><td>Set interaction prompt shown near computer chair target</td></tr><tr><td>Table model</td><td>Select/List</td><td>Choose table object model (<code>0</code> = do not create)</td></tr><tr><td>Chair model</td><td>Select/List</td><td>Choose chair object model (<code>0</code> = do not create)</td></tr><tr><td>Use map chair (link chair)</td><td>Action</td><td>Open nearby chair entity linker and attach to existing mapped chair</td></tr><tr><td>Use model chair</td><td>Action</td><td>Switch back to created/model-based chair mode after linking map chair</td></tr><tr><td>Computer model</td><td>Select/List</td><td>Choose computer object model (<code>0</code> = do not create)</td></tr><tr><td>Action type</td><td>Select/List</td><td>Choose interaction mode: <code>event</code>, <code>export</code>, <code>none</code>, <code>cameras</code></td></tr><tr><td>Event name</td><td>Text</td><td>Event payload used when action type is <code>event</code></td></tr><tr><td>Export name</td><td>Text</td><td>Export string used when action type is <code>export</code></td></tr><tr><td>Manage cameras</td><td>Action</td><td>Add/delete camera screen entries when action type is <code>cameras</code></td></tr><tr><td>Restrictions</td><td>Action</td><td>Open restrictions editor for computer access rules</td></tr><tr><td>Proximity</td><td>Number</td><td>Set interaction/subscription distance in meters</td></tr><tr><td>Load only interiors</td><td>Toggle</td><td>Load this computer setup only while players are in interiors</td></tr><tr><td>Add computer</td><td>Action</td><td>Create a new computer setup with default chair/table/computer objects</td></tr><tr><td>Delete computer</td><td>Action</td><td>Delete selected computer setup</td></tr></tbody></table>

## Chair linking and chair creating

Office computers support two chair workflows:

1. **Create chair from model** (`chair.createObject = true`) using `ComputerChairModels`.
2. **Link existing mapped chair** (`chair.createObject = false`) by selecting **Use map chair** and choosing one of the nearby detected chair entities.

This makes it easy to integrate computers into custom interiors where chairs are already mapped.

## Preview / Object

<table data-full-width="false"><thead><tr><th width="127">Preview</th><th>Object</th><th>Config section</th><th>Default Model</th></tr></thead><tbody><tr><td><img src="https://1037498771-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MZErcztD5BvrKnwRGJq%2Fuploads%2Fgit-blob-8406764d0799130b60144a871ebe5ac65df9949d%2Foffice_chair.png?alt=media" alt=""></td><td>Chair object</td><td>chair</td><td><code>vw_prop_vw_offchair_02</code></td></tr><tr><td><img src="https://1037498771-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MZErcztD5BvrKnwRGJq%2Fuploads%2Fgit-blob-db368aacb2e8445372e890041830335f4d810846%2Foffice_table.png?alt=media" alt=""></td><td>Table object</td><td>table</td><td><code>v_ind_dc_desk01</code></td></tr><tr><td><img src="https://1037498771-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MZErcztD5BvrKnwRGJq%2Fuploads%2Fgit-blob-4f9eb4d7aaea1eaa83cc131c32363e9f8c3d8490%2Foffice_computer.png?alt=media" alt=""></td><td>Computer object</td><td>computer</td><td><code>ch_prop_laptop_01a</code></td></tr></tbody></table>

## Model lists

Selectable models are configured in `rcore_casino/configs/computers.lua`:

```lua
ComputerChairModels = {1127420746, -1633198649, 1339364336, 538002882}
ComputerPropModels = {"ch_prop_laptop_01a"}
ComputerTableModels = {"v_ind_dc_desk01"}
```


---

# 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://documentation.rcore.cz/paid-resources/rcore_casino/rcore_casino-2/editor/office-computers.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.
