Data¶
This page documents hooks in the data category.
OnDataSet(key, value, gamemode, map)View Source
Purpose
Runs after `lia.data.set` updates the cached value and writes the scoped data file.
Category
Data
Realm
Server
Parameters
string key The data key that was stored.
any value The value that was stored.
string gamemode The resolved gamemode scope used for the write.
string map The resolved map scope used for the write.
Example Usage
hook.Add("OnDataSet", "liaExampleOnDataSet", function(key, value, gamemode, map)
print("[MyModule] handled OnDataSet")
end)