
If we wanted to store a client's health when they log off, and we used their steam names as identification, what's stopping them from changing it before they next log on? Nothing. Let's say we started letting clients keep track of their money what's stopping them from adding a few zeros on the end?Īlways use identification that the client can't manipulate. Keep all data backed up on the server as this is the only way that you can be sure that the data is authentic. Never trust data that has been handled by a client. When handling any data, there are some rules that we should follow: In this tutorial, we will go over File Based Storage. There are multiple ways of storing data in Garry's Mod. If you need to give data to the client, make sure to keep a backup of it on the server!

Only store, save, change, and load data from the server.
