# How can I implement currency or resource sharing amonst users?

**URL:** <https://forum.heroiclabs.com/t/how-can-i-implement-currency-or-resource-sharing-amonst-users/1695>\
**Category:** Game Design\
**Tags:** storage, economy\
**Created:** [June 9, 2021, 9:29am UTC](https://forum.heroiclabs.com/t/how-can-i-implement-currency-or-resource-sharing-amonst-users/1695 "2021-06-09T09:29:35Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mhdhammadeh](https://avatars.discourse-cdn.com/v4/letter/m/8dc957/32.png) [@mhdhammadeh](https://forum.heroiclabs.com/u/mhdhammadeh)\
**Post date:** [June 9, 2021, 9:29am UTC](https://forum.heroiclabs.com/t/how-can-i-implement-currency-or-resource-sharing-amonst-users/1695/1 "2021-06-09T09:29:36Z")

</div>

I am using Nakama for chat and leaderboard and realtime playing.  
I want to allow users shares them abilities in the game like coins r keys.  
In this case, is there any kind of event that handles changing the value of any slot of database on Nakama?  
and if yes, how could it be, if not what is the suitable alternative t do so?

Reagrds

---

<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:** [June 13, 2021, 10:05pm UTC](https://forum.heroiclabs.com/t/how-can-i-implement-currency-or-resource-sharing-amonst-users/1695/2 "2021-06-13T22:05:47Z")

</div>

Hi @mhdhammadeh welcome 👋

I’m glad you’ve had great success so far with Nakama server. I’ll answer each of your questions below.

> In this case, is there any kind of event that handles changing the value of any slot of database on Nakama?

There’s no event to handle the mutation of any data in the database but there are APIs available in the server framework to update user wallets, storage objects, user metadata, etc, etc. You should use these APIs to implement parts of your game logic.

> I want to allow users shares them abilities in the game like coins r keys.

You could implement this kind of game system with server logic that gets loaded and run by the game server. You can write your code in TypeScript/JavaScript, Go, or Lua. Have a look at our documentation for more info and code examples: [https://heroiclabs.com/docs/runtime-code-basics/#rpc-example](https://heroiclabs.com/docs/runtime-code-basics/#rpc-example)

Hope this helps.
