# How To Use

### Adding new locations

You can manually add locations in the config.lua

* For example:

```lua
{ -- Sisyphus Theater
    job = "public",                                     -- "public" or nil makes it so anyone can add music.
    enableBooth = true,                                 -- option to disable rather than deleting code
    DefaultVolume = 0.15,                               -- 0.01 is lowest, 1.0 is max
    radius = 200,                                       -- The radius of the sound from the booth
    coords = vec3(206.9, 1181.04, 226.51),              -- Where the booth target is located
    soundLoc = vec3(212.32, 1155.87, 227.01),           -- Add sound origin location (optional)
    prop = {                                            -- Add an optional prop for players to target
        model = "prop_radio_01",                        -- the prop model
        coords = vec4(-1190.22, -897.46, 14.83, 40),    -- the prop location and heading
    }
},
```

You can also add them from other scripts with the server sided event:

```lua
TriggerEvent("jim-djbooth:server:AddLocation",
    { -- Sisyphus Theater
        job = "public",
        enableBooth = true,
        DefaultVolume = 0.15, radius = 200,
        coords = vec3(206.9, 1181.04, 226.51),
        soundLoc = vec3(212.32, 1155.87, 227.01),
        prop = {
            model = "prop_radio_01",
            coords = vec4(-1190.22, -897.46, 14.83, 40),
        }
    }
)
```


---

# 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://jixelpatterns.gitbook.io/docs/free-assets/jim-djbooth/how-to-use.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.
