# Spawn items in multiplayer match

**URL:** <https://forum.heroiclabs.com/t/spawn-items-in-multiplayer-match/3067>\
**Category:** Game Design\
**Created:** [September 21, 2022, 8:07pm UTC](https://forum.heroiclabs.com/t/spawn-items-in-multiplayer-match/3067 "2022-09-21T20:07:46Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ryanprice](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.heroiclabs.com/ryanprice/32/1323_2.png) [@ryanprice](https://forum.heroiclabs.com/u/ryanprice)\
**Post date:** [September 21, 2022, 8:07pm UTC](https://forum.heroiclabs.com/t/spawn-items-in-multiplayer-match/3067/1 "2022-09-21T20:07:46Z")

</div>

Hi there,  
We have been using Nakama successfully for some basic multiplayer clients in JS, for simple things like players walking on a map, or displaying an emote or player action.

We would now like to have something like: an object say a key that the server spawns at a specific location on the multiplayer map. The first of many logged in players could then retrieve the 1 key and carry it.

What would you recommend for a secure method or pattern to implement this type of functionality ?

---

<div class="post-metadata">

**Author:** ![tunglt1810](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.heroiclabs.com/tunglt1810/32/924_2.png) [@tunglt1810](https://forum.heroiclabs.com/u/tunglt1810)\
**Post date:** [September 22, 2022, 4:26am UTC](https://forum.heroiclabs.com/t/spawn-items-in-multiplayer-match/3067/2 "2022-09-22T04:26:37Z")

</div>

you should define a netcode/message for this case, client send a message with this code and server side handle to generate object

 ![image](https://us1.discourse-cdn.com/flex020/uploads/heroiclabs/original/2X/4/4fa1630ccee753e010cb4c66ce933fb9fb285423.jpeg)
