# I want to setting option in user account

**URL:** <https://forum.heroiclabs.com/t/i-want-to-setting-option-in-user-account/1089>\
**Category:** Game Design\
**Created:** [October 29, 2020, 9:20am UTC](https://forum.heroiclabs.com/t/i-want-to-setting-option-in-user-account/1089 "2020-10-29T09:20:14Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![kmsudhir](https://avatars.discourse-cdn.com/v4/letter/k/4491bb/32.png) [@kmsudhir](https://forum.heroiclabs.com/u/kmsudhir)\
**Post date:** [October 29, 2020, 9:20am UTC](https://forum.heroiclabs.com/t/i-want-to-setting-option-in-user-account/1089/1 "2020-10-29T09:20:14Z")

</div>

i want to set some information in user account (like : sound on off , vibration on off) and need to send at the time of login. how to do this function.

---

<div class="post-metadata">

**Author:** ![novabyte](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.heroiclabs.com/novabyte/32/1324_2.png) [@novabyte](https://forum.heroiclabs.com/u/novabyte)\
**Post date:** [October 29, 2020, 2:48pm UTC](https://forum.heroiclabs.com/t/i-want-to-setting-option-in-user-account/1089/2 "2020-10-29T14:48:22Z")

</div>

@kmsudhir The user account stores metadata which you can write this information into as a JSON object. You’ll need to write an RPC function to do it because the metadata for a user is protected so it can only be written to by server-side logic. This prevents players who want to tamper with the values from changing the data.

[https://heroiclabs.com/docs/user-accounts/#user-metadata](https://heroiclabs.com/docs/user-accounts/#user-metadata)

If you’d prefer not to write server-side logic and want to just store the data as preferences for the user have a look at the storage engine which lets you write JSON to storage objects:

[https://heroiclabs.com/docs/storage-collections/#write-objects](https://heroiclabs.com/docs/storage-collections/#write-objects)

---

<div class="post-metadata">

**Author:** ![kmsudhir](https://avatars.discourse-cdn.com/v4/letter/k/4491bb/32.png) [@kmsudhir](https://forum.heroiclabs.com/u/kmsudhir)\
**Post date:** [November 4, 2020, 5:03pm UTC](https://forum.heroiclabs.com/t/i-want-to-setting-option-in-user-account/1089/3 "2020-11-04T17:03:05Z")

</div>

how to write rpc call for deduct from virtual wallet.

---

<div class="post-metadata">

**Author:** ![novabyte](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.heroiclabs.com/novabyte/32/1324_2.png) [@novabyte](https://forum.heroiclabs.com/u/novabyte)\
**Post date:** [November 5, 2020, 5:51pm UTC](https://forum.heroiclabs.com/t/i-want-to-setting-option-in-user-account/1089/4 "2020-11-05T17:51:59Z")

</div>

@kmsudhir [https://heroiclabs.com/docs/user-accounts/#virtual-wallet](https://heroiclabs.com/docs/user-accounts/#virtual-wallet)
