# Ambient Peds

The **Ambient Peds** editor page manages ambient pedestrian groups used to populate the casino.

<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-eaef1de26ed5748b1f6a97cbecc091ffeaec534e%2Fcapt_ambientpeds.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 ambient ped group</td></tr><tr><td>Ped count</td><td>Number</td><td>Set how many ambient peds are in the group (up to 5)</td></tr><tr><td>Radius</td><td>Number</td><td>Set the spawn/distribution radius for the group</td></tr><tr><td>Heading</td><td>Number</td><td>Set the group heading direction</td></tr><tr><td>Ped 1-5 model</td><td>Select/List</td><td>Choose the NPC model for each ped slot</td></tr><tr><td>Ped 1-5 scenario</td><td>Select/List</td><td>Choose the scenario/animation behavior for each ped slot</td></tr><tr><td>Proximity</td><td>Number</td><td>Set proximity distance in meters</td></tr><tr><td>Load only interiors</td><td>Toggle</td><td>Load this ped group only while players are in interiors</td></tr></tbody></table>

## AmbientPedModels

Ambient ped models available in editor are defined in `rcore_casino/configs/ambientpeds.lua` in the `AmbientPedModels` list.

Only models from this list can be selected in the ambient ped editor for ped slots.

```lua
AmbientPedModels = {"a_f_m_bevhills_01", "a_f_m_bevhills_02", "a_f_m_ktown_01", "ADD_YOUR_PED_HERE"}
```

## AmbientScenarios

Ambient scenarios available in editor are defined in `rcore_casino/configs/ambientpeds.lua` in the `AmbientScenarios` list.

These are used by the editor's scenario selectors for each ped slot.

```lua
AmbientScenarios = {"PROP_HUMAN_SEAT_BENCH_DRINK_BEER", "PROP_HUMAN_SEAT_CHAIR_UPRIGHT", "PROP_HUMAN_SEAT_CHAIR_FOOD", "ADD_YOUR_SCENARIO_HERE"}
```

## AmbientAnimations

Ambient animation definitions are in `rcore_casino/configs/ambientpeds.lua` in the `AmbientAnimations` table.

Each animation entry defines animation dictionary + animation name

```lua
AmbientAnimations = {{
    name = "base",
    dict = "amb@world_human_cheering@female_c"
}, {
    name = "base",
    dict = "anim@amb@office@boardroom@boss@female@"
}, {
    name = "simple_inspect_v1_idartistfemale",
    dict = "anim@amb@business@cfid@cfid_desk_docs@"
}, {
    name = "ADD_YOUR_ANIM_NAME_HERE",
    dict = "ADD_YOUR_ANIM_DICT_HERE"
}}

```
