# Crash after drinking potion as a client: scripts/ui/ui\_animations.lua:280: attempt to index local 'pictures' (a number value)

**URL:** <https://forums.fatsharkgames.com/t/crash-after-drinking-potion-as-a-client-scripts-ui-ui-animations-lua-attempt-to-index-local-pictures-a-number-value/36812>\
**Category:** Technical Support\
**Tags:** mod-related\
**Created:** [October 27, 2019, 5:02am UTC](https://forums.fatsharkgames.com/t/crash-after-drinking-potion-as-a-client-scripts-ui-ui-animations-lua-attempt-to-index-local-pictures-a-number-value/36812 "2019-10-27T05:02:16Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![hollerbach](https://dub1.discourse-cdn.com/flex013/user_avatar/forums.fatsharkgames.com/hollerbach/32/19870_2.png) [@hollerbach](https://forums.fatsharkgames.com/u/hollerbach)\
**Post date:** [October 27, 2019, 5:02am UTC](https://forums.fatsharkgames.com/t/crash-after-drinking-potion-as-a-client-scripts-ui-ui-animations-lua-attempt-to-index-local-pictures-a-number-value/36812/1 "2019-10-27T05:02:16Z")

</div>

I’ve got two separate instances of crashing immediately after drinking a potion, both while playing as a client in a legend match.

First one in Hunger in the Dark:

```
GUID: 2eb7e022-0c58-41c5-ae60-cdc73cd62e35
Log File: 
Info Type: 
-----------------------------------------------
[Script Error]: scripts/ui/ui_animations.lua:280: attempt to index local 'pictures' (a number value)
-----------------------------------------------
[Crash Link]:
crashify://2eb7e022-0c58-41c5-ae60-cdc73cd62e35

```

Second one in Against the Grain:

```
GUID: d8c968f7-d60b-4c2c-a9e3-dfdb5c4c5926
Log File: 
Info Type: 
-----------------------------------------------
[Script Error]: scripts/ui/ui_animations.lua:280: attempt to index local 'pictures' (a number value)
-----------------------------------------------
[Crash Link]:
crashify://d8c968f7-d60b-4c2c-a9e3-dfdb5c4c5926

```

EDIT: Would like to add that I’ve drank potions plenty of times on multiple matches with no issues. My game only crashed those two times.

---

<div class="post-metadata">

**Author:** ![Sadero](https://avatars.discourse-cdn.com/v4/letter/s/76d3ee/32.png) [@Sadero](https://forums.fatsharkgames.com/u/Sadero)\
**Post date:** [October 27, 2019, 8:09am UTC](https://forums.fatsharkgames.com/t/crash-after-drinking-potion-as-a-client-scripts-ui-ui-animations-lua-attempt-to-index-local-pictures-a-number-value/36812/2 "2019-10-27T08:09:40Z")

</div>

Could be the ‘parry indicator’ mod or possibly another one, some sanctioned mods are still broken atm.

---

<div class="post-metadata">

**Author:** ![hollerbach](https://dub1.discourse-cdn.com/flex013/user_avatar/forums.fatsharkgames.com/hollerbach/32/19870_2.png) [@hollerbach](https://forums.fatsharkgames.com/u/hollerbach)\
**Post date:** [October 27, 2019, 8:44am UTC](https://forums.fatsharkgames.com/t/crash-after-drinking-potion-as-a-client-scripts-ui-ui-animations-lua-attempt-to-index-local-pictures-a-number-value/36812/3 "2019-10-27T08:44:13Z")

</div>

I don’t use parry indicator. Did you also get this particular crash message? Because the crash error messages from the crashing mods I know of are different.

---

<div class="post-metadata">

**Author:** ![Sadero](https://avatars.discourse-cdn.com/v4/letter/s/76d3ee/32.png) [@Sadero](https://forums.fatsharkgames.com/u/Sadero)\
**Post date:** [October 27, 2019, 9:31am UTC](https://forums.fatsharkgames.com/t/crash-after-drinking-potion-as-a-client-scripts-ui-ui-animations-lua-attempt-to-index-local-pictures-a-number-value/36812/4 "2019-10-27T09:31:37Z")

</div>

I have seen this error from a crashing mod, yes.

If it’s guaranteed when drinking a potion, just disable all mods and try the keep potions.

---

<div class="post-metadata">

**Author:** ![hollerbach](https://dub1.discourse-cdn.com/flex013/user_avatar/forums.fatsharkgames.com/hollerbach/32/19870_2.png) [@hollerbach](https://forums.fatsharkgames.com/u/hollerbach)\
**Post date:** [October 27, 2019, 9:51am UTC](https://forums.fatsharkgames.com/t/crash-after-drinking-potion-as-a-client-scripts-ui-ui-animations-lua-attempt-to-index-local-pictures-a-number-value/36812/5 "2019-10-27T09:51:44Z")

</div>

> [@Sadero](#):
>
> I have seen this error from a crashing mod, yes.

Which mod was it?

> [@Sadero](#):
>
> If it’s guaranteed when drinking a potion, just disable all mods and try the keep potions.

It’s not guaranteed. I’ve drank potions plenty of times on multiple matches with no issues; My game only crashed those two times. The only mod being called in the Lua stack in the console logs is VMF and no other mods. Otherwise, I’d have already identified the crashing mod.

---

<div class="post-metadata">

**Author:** ![Sadero](https://avatars.discourse-cdn.com/v4/letter/s/76d3ee/32.png) [@Sadero](https://forums.fatsharkgames.com/u/Sadero)\
**Post date:** [October 27, 2019, 5:16pm UTC](https://forums.fatsharkgames.com/t/crash-after-drinking-potion-as-a-client-scripts-ui-ui-animations-lua-attempt-to-index-local-pictures-a-number-value/36812/6 "2019-10-27T17:16:48Z")

</div>

A list I lifted from the Squirrel Squad discord:  
Simple UI  
Loadout manager  
Mission timer  
Boss Kill Timer  
Clock  
Info dump for streamers (whatever the name for this is)  
Inventory Filter  
My Hero

In some cases: Third Person Equipment & Weapon Kill Timer (if these aren’t causing crashes for you, don’t bother disabling)  
Parry Indicator (causes the shields to stay permanently on your screen at all times, even with ranged equipped - just a UI bug)

---

<div class="post-metadata">

**Author:** ![hollerbach](https://dub1.discourse-cdn.com/flex013/user_avatar/forums.fatsharkgames.com/hollerbach/32/19870_2.png) [@hollerbach](https://forums.fatsharkgames.com/u/hollerbach)\
**Post date:** [October 28, 2019, 5:39am UTC](https://forums.fatsharkgames.com/t/crash-after-drinking-potion-as-a-client-scripts-ui-ui-animations-lua-attempt-to-index-local-pictures-a-number-value/36812/7 "2019-10-28T05:39:05Z")

</div>

Except Third Person Equipment & Weapon Kill Timer, all of those mods are either disabled or not subscribed to as of the time of crashing.

---

<div class="post-metadata">

**Author:** ![FatsharkJulia](https://dub1.discourse-cdn.com/flex013/user_avatar/forums.fatsharkgames.com/fatsharkjulia/32/11653_2.png) [@FatsharkJulia](https://forums.fatsharkgames.com/u/FatsharkJulia)\
**Post date:** [October 28, 2019, 10:39am UTC](https://forums.fatsharkgames.com/t/crash-after-drinking-potion-as-a-client-scripts-ui-ui-animations-lua-attempt-to-index-local-pictures-a-number-value/36812/8 "2019-10-28T10:39:09Z")

</div>

I suspect the UI Improvements mod is playing up here.

---

<div class="post-metadata">

**Author:** ![hollerbach](https://dub1.discourse-cdn.com/flex013/user_avatar/forums.fatsharkgames.com/hollerbach/32/19870_2.png) [@hollerbach](https://forums.fatsharkgames.com/u/hollerbach)\
**Post date:** [October 29, 2019, 3:36am UTC](https://forums.fatsharkgames.com/t/crash-after-drinking-potion-as-a-client-scripts-ui-ui-animations-lua-attempt-to-index-local-pictures-a-number-value/36812/9 "2019-10-29T03:36:43Z")

</div>

It seems to actually be caused by UI Tweaks as per an update by its author (issue is now fixed): [https://steamcommunity.com/sharedfiles/filedetails/?id=1467751760](https://steamcommunity.com/sharedfiles/filedetails/?id=1467751760)

---

<div class="post-metadata">

**Author:** ![system](https://europe1.discourse-cdn.com/flex013/uploads/fatshark/original/3X/3/1/319a2f41b73f03a4d9360defbe43058888a33c8c.png) [@system](https://forums.fatsharkgames.com/u/system)\
**Post date:** [November 5, 2019, 3:36am UTC](https://forums.fatsharkgames.com/t/crash-after-drinking-potion-as-a-client-scripts-ui-ui-animations-lua-attempt-to-index-local-pictures-a-number-value/36812/10 "2019-11-05T03:36:43Z")

</div>

Closed on November 5, 2019, 3:36am UTC

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.
