Persistent Storage
Last edited byJerryTheBee10/16/2025
Use these files in your plugin files to store persistent data with cvars but without risking the cvars being cleared
Usage
// preferably in onload but at least before you use it (genious advice)
persistent_storage_ = std::make_shared<PersistentStorage>(this, "Hats", true, true);
//register the cvar like "normal"
auto cvar = persistent_storage_->RegisterPersistentCvar("hats_preset", "", "The selected preset", true);
Download these files to use
PersistentStorage.h
PersistentStorage.cpp
Was this article helpful?
Your feedback helps us improve our documentation
No contributors yet.