# Inventory with game and ui mode (help)

**URL:** <https://forums.unrealengine.com/t/inventory-with-game-and-ui-mode-help/472381>\
**Category:** Editor Scripting\
**Tags:** inventory, unreal-engine, question\
**Created:** [October 6, 2020, 9:30pm UTC](https://forums.unrealengine.com/t/inventory-with-game-and-ui-mode-help/472381 "2020-10-06T21:30:52Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nireexen](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Nireexen](https://forums.unrealengine.com/u/Nireexen)\
**Post date:** [October 6, 2020, 9:30pm UTC](https://forums.unrealengine.com/t/inventory-with-game-and-ui-mode-help/472381/1 "2020-10-06T21:30:52Z")

</div>

Hey there, I could need some help with some inventory stuff.

I’m trying to lock the camera when the inventory open up. It works but when i’m trying to close the inventory it doesn’t work. Screenshot below / / /

 ![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/6/5/f658898700c45115ed6cb82c68bade5a3df41cbd.png)

Have a great day and thanks for helping.
