Multiplayer Data Storage

Started by haz 3 posts 168 views

Reply on sbox.game
  1. #1
    haz 18,929
    Hello,

    I'm working on a multiplayer (p2p) non-dedicated game and I'm trying to figure out how to save things like, levels, money ect. I've reviewed the FileSystem docs but I'm wondering how this works to prevent users from going into the saved .json files and modifying the data, to effectively cheat? 

    Is there an alternative to the FileSystem API or another approach which would allow me to save a players data and prevent cheating via modifying the json?

    I'm fairly new to S&Box development so any suggestions would be greatly appreciated, thank you!

  2. #2
    Austin 2,540
    Stats service should do you just fine if you're just saving stats, levels, money, etc.

    https://sbox.game/dev/doc/services/
  3. #3
    haz Started this 18,929
    Thank you!