> For the complete documentation index, see [llms.txt](https://atascripts.gitbook.io/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://atascripts.gitbook.io/docs/resource/xvi-phone/config-file.md). Agents can also search and read this documentation through its [MCP server](https://atascripts.gitbook.io/docs/~gitbook/mcp).

# Config File

Everything you can change lives in config.lua.

Everything server owners usually change is in `config.lua`. Restart `ata_phone` after saving.

## Most used settings

| Setting               | What it does                                                                  |
| --------------------- | ----------------------------------------------------------------------------- |
| `Config.NeedItem`     | `true` needs a phone item, `false` gives everyone a phone                     |
| `Config.Prop`         | Phone model used when no item picks one                                       |
| `Config.PhoneDisplay` | `'dui'` shows the screen on the phone, `'ui'` shows it on the player's screen |
| `Config.JobCalls`     | Numbers like 911 that ring everyone on that job                               |
| `Config.News`         | Who can publish in the News app                                               |
| `Config.Bank`         | Transfer limits and history size                                              |
| `Config.MaxPhotos`    | How many photos each player can keep                                          |
| `Config.IceServers`   | Add a TURN server here if video calls stay black                              |

## Add your own content

{% tabs %}
{% tab title="Wallpaper" %}
Drop a `.jpg` into `html/wallpapers`, then add it to the list:

```lua
{ file = 'my_wallpaper.jpg', name = 'My Wallpaper' },
```

{% endtab %}

{% tab title="Ringtone" %}
Drop an `.mp3` into `html/sounds`, then add it to `Config.Ringtones` or `Config.MessageTones`:

```lua
{ name = 'My Tone', file = 'my_tone.mp3' },
```

{% endtab %}

{% tab title="Job number" %}
Great for police, EMS, mechanics or any business. Everyone on duty rings, and the first to answer takes the call.

```lua
{ name = 'Burger Shot', number = '916', jobs = { 'burgershot' } },
```

{% endtab %}

{% tab title="Selfie emote" %}

```lua
{ name = 'Thumbs Up', dict = 'anim@mp_player_intselfiethumbs_up', clip = 'idle_a' },
```

{% endtab %}
{% endtabs %}

## Full config

{% code title="config.lua" overflow="wrap" lineNumbers="true" %}

```lua
Config = {}

Config.OpenKey = 'F1'
Config.Prop = 'prop_ata_phone_max01_silver'
Config.PhoneDisplay = 'dui'
Config.NeedItem = true
Config.PhoneItems = {
    { item = 'ata_phone_silver', prop = 'prop_ata_phone_max01_silver' },
    { item = 'ata_phone_black', prop = 'prop_ata_phone_max01_black' },
    { item = 'ata_phone_red', prop = 'prop_ata_phone_max01_red' },
    { item = 'ata_phone_pink', prop = 'prop_ata_phone_max01_pink' },
    { item = 'ata_phone_blue', prop = 'prop_ata_phone_max01_blue' },
}
Config.News = { Jobs = { reporter = true }, Groups = { admin = true }, Source = 'Weazel News', Logo = 'images/logo_weazel.png' }
Config.JobCalls = {
    { name = 'Police', number = '911', jobs = { 'police' } },
    { name = 'EMS', number = '912', jobs = { 'ambulance' } },
    { name = 'Mechanic', number = '913', jobs = { 'mechanic' } },
    { name = 'Taxi', number = '914', jobs = { 'taxi' } },
    { name = 'Weazel News', number = '915', jobs = { 'reporter' } },
}
Config.MessageTone = 'Note'
Config.Hour24 = false
Config.ChatTimeGap = 600
Config.PropOffset = vector3(0.0098, -0.0153, -0.0199)
Config.PropRot = vector3(10.37, 23.51, 8.37)
Config.PhoneCam = { offset = vector3(0.0646, -0.2707, 0.0304), offsetFemale = vector3(0.0485, -0.3197, 0.0998), rot = vector3(-6.25, -0.11, 13.43), fov = 45.0 }
Config.PropHand = { offset = vector3(0.0, -0.012, 0.0), rot = vector3(0.0, 0.0, 0.0) }
Config.PropHandFemale = { offset = vector3(0.0, 0.0, 0.0), rot = vector3(0.0, 0.0, 0.0) }
Config.PropCar = { offset = vector3(0.0, 0.0, 0.0), rot = vector3(0.0, 0.0, 0.0) }
Config.PhoneCamCar = { offset = vector3(0.0, 0.08, 0.03), rot = vector3(-12.0, 0.0, 0.0), fov = 62.0 }
Config.PhoneCamPassengerFov = 44.0
Config.FadeTime = 150
Config.ScreenTex = 'prop_ata_phone_screen'

Config.NotifyTheme = 'auto'
Config.ReplyKey = 'E'
Config.DeclineKey = 'X'
Config.NumberLength = 10
Config.ShareDistance = 3.0
Config.PromptTime = 15000
Config.SpeakerKey = 'K'
Config.MuteKey = 'M'
Config.CallVolume = 60
Config.SpeakerRange = 3.0
Config.VideoKey = 'V'
Config.Flashlight = { Key = 'G', Distance = 30.0, Brightness = 8.0, Hardness = 0.0, Radius = 32.0, Falloff = 2.0, Tilt = -0.4 }
Config.LocationKey = 'L'
Config.IceServers = { { urls = 'stun:stun.l.google.com:19302' } }
Config.RingRange = 15.0
Config.RingVolume = 0.5
Config.MessageTones = {
    { name = 'Silent', file = false },
    { name = 'Note', file = 'note.mp3' },
    { name = 'Blip', file = 'blip.mp3' },
    { name = 'Murmur', file = 'murmur.mp3' },
    { name = 'Cinder', file = 'cinder.mp3' },
    { name = 'Flicker', file = 'flicker.mp3' },
    { name = 'Wisp', file = 'wisp.mp3' },
    { name = 'Spark', file = 'spark.mp3' },
}
Config.Ringtones = {
    { name = 'Silent', file = false },
    { name = 'Wind Chimes', file = 'prism.mp3' },
    { name = 'Dreamy', file = 'solstice.mp3' },
    { name = 'Beeps', file = 'drift.mp3' },
    { name = 'Retro', file = 'vesper.mp3' },
    { name = 'Beam Me Up', file = 'meridian.mp3' },
    { name = 'Bugging', file = 'ember.mp3' },
    { name = 'Echo', file = 'lantern.mp3' },
    { name = 'Samba Nights', file = 'nimbus.mp3' },
    { name = 'Sunny Day', file = 'dew.mp3' },
    { name = 'Old Phone', file = 'quill.mp3' },
}
Config.MessageTime = 6000
Config.RingTime = 30000
Config.BusyToneTime = 3000
Config.CallChannel = 7000

Config.LikeKey = 'L'
Config.OptionsKey = 'O'
Config.SnapPosts = 30
Config.MaxMessages = 500
Config.Bank = { Name = 'Bank', MinSend = 1, MaxSend = 1000000, History = 50, DailyLimit = false, WeeklyLimit = false }
Config.VideoMin = 1000
Config.VideoMax = 10000
Config.MaxVideoBytes = 8000000
Config.MaxPhotos = 32
Config.SelfieCam = { Distance = 1.25, MinDistance = 0.6, MaxDistance = 2.2, ZoomStep = 0.12, MaxYaw = 55.0, MaxPitch = 35.0, MouseSpeed = 6.0, Height = 0.62 }
Config.SelfieEmotes = {
    { name = 'Hold Phone' },
    { name = 'Thumbs Up', dict = 'anim@mp_player_intselfiethumbs_up', clip = 'idle_a' },
    { name = 'Peace', dict = 'anim@mp_player_intincarpeacestd@ds@', clip = 'idle_a' },
    { name = 'V Sign', dict = 'anim@mp_player_intincarv_signstd@ds@', clip = 'idle_a' },
    { name = 'Wave', dict = 'anim@mp_player_intincarwavestd@ds@', clip = 'idle_a' },
    { name = 'Blow Kiss', dict = 'anim@mp_player_intupperblow_kiss', clip = 'idle_a' },
    { name = 'Finger Kiss', dict = 'anim@mp_player_intincarfinger_kissstd@rds@', clip = 'idle_a' },
    { name = 'Salute', dict = 'anim@mp_player_intincarsalutestd@ps@', clip = 'idle_a' },
    { name = 'Call Me', dict = 'anim@mp_player_intincarcall_mestd@ps@', clip = 'idle_a' },
    { name = 'Chin Brush', dict = 'anim@mp_player_intincarchin_brushstd@ps@', clip = 'idle_a' },
    { name = 'No Way', dict = 'anim@mp_player_intincarno_waystd@ds@', clip = 'idle_a' },
    { name = 'You Loco', dict = 'anim@mp_player_intincaryou_locostd@ds@', clip = 'idle_a' },
    { name = 'Face Palm', dict = 'anim@mp_player_intupperface_palm', clip = 'idle_a' },
    { name = 'The Bird', dict = 'anim@mp_player_intselfiethe_bird', clip = 'idle_a' },
}
Config.SelfieFaces = {
    { name = 'Normal', mood = false },
    { name = 'Happy', mood = 'mood_happy_1' },
    { name = 'Excited', mood = 'mood_excited_1' },
    { name = 'Smug', mood = 'mood_smug_1' },
    { name = 'Angry', mood = 'mood_angry_1' },
    { name = 'Frustrated', mood = 'mood_frustrated_1' },
    { name = 'Stressed', mood = 'mood_stressed_1' },
    { name = 'Sulk', mood = 'mood_sulk_1' },
    { name = 'Injured', mood = 'mood_injured_1' },
    { name = 'Drunk', mood = 'mood_drunk_1' },
    { name = 'Sleeping', mood = 'mood_sleeping_1' },
    { name = 'Knocked Out', mood = 'mood_knockout_1' },
}
Config.CameraFilters = {
    false, 'phone_cam', 'phone_cam1', 'phone_cam2', 'phone_cam3', 'phone_cam4', 'phone_cam5', 'phone_cam6', 'phone_cam7',
    'phone_cam8', 'phone_cam9', 'phone_cam10', 'phone_cam11', 'phone_cam12', 'phone_cam13', 'CAMERA_BW', 'cinema',
}

Config.Wallpaper = 'circles_livid.jpg'
Config.Wallpapers = {
    { file = 'circles_livid.jpg', name = 'Livid Circles' },
    { file = 'circles_lime.jpg', name = 'Lime Circles' },
    { file = 'circles_teal.jpg', name = 'Teal Circles' },
    { file = 'circles_blue.jpg', name = 'Blue Circles' },
    { file = 'photo_hills.jpg', name = 'Misty Hills' },
    { file = 'photo_tower.jpg', name = 'Night Tower' },
    { file = 'photo_bw.jpg', name = 'Black and White' },
    { file = 'photo_palms.jpg', name = 'Palm Tree Sunrise' },
    { file = 'wallpaper_1.jpg', name = 'Pastel Waves' },
    { file = 'wallpaper_2.jpg', name = 'Lilac Haze' },
    { file = 'wallpaper_3.jpg', name = 'Lavender Glow' },
    { file = 'wallpaper_4.jpg', name = 'Blue Swirl' },
    { file = 'wallpaper_5.jpg', name = 'Deep Blue' },
}
Config.ScreenDim = { Day = 0.3, Night = 0.5, NightFrom = 20, NightTo = 6 }
Config.BlockPhone = { Dead = true, Cuffed = true, Swimming = true }

Config.Weather = {
    EXTRASUNNY = { temp = 82, icon = 'sun' },
    CLEAR      = { temp = 76, icon = 'sun' },
    NEUTRAL    = { temp = 73, icon = 'sun' },
    SMOG       = { temp = 75, icon = 'cloud' },
    FOGGY      = { temp = 64, icon = 'cloud' },
    OVERCAST   = { temp = 70, icon = 'cloud' },
    CLOUDS     = { temp = 73, icon = 'cloud' },
    CLEARING   = { temp = 68, icon = 'cloud' },
    RAIN       = { temp = 62, icon = 'cloud' },
    THUNDER    = { temp = 60, icon = 'cloud' },
    SNOW       = { temp = 30, icon = 'cloud' },
    BLIZZARD   = { temp = 24, icon = 'cloud' },
    SNOWLIGHT  = { temp = 32, icon = 'cloud' },
    XMAS       = { temp = 28, icon = 'cloud' },
    HALLOWEEN  = { temp = 58, icon = 'cloud' },
}
```

{% endcode %}
