Gamestates equal to 0

Hi guys. I have been working on building on the nakama godot demo Heroic Labs partered with GDQuest on. I was working on making it so that players only get the states that are close to theirselves. I immediatly ran into to the issue that whenever I tried to acces the state by using state.positions[1] it returned nill. My code is at the runtime server code is located in the Nakama folder. Thanks for any help you guys can give me!

You’re trying to access the positions table using an array-like numeric index, but your keys are the user IDs based on your code here. You have no key 1 in your state.positions table, so naturally you get nil.

I should have been able to catch that myself :grimacing: thanks for the help though!