Here you go
Disclaimer: Might not work on official squirrel plugin due to new instances of CPlayer getting generated and returned sometimes
Code Select
LUA_DELEGATE <-
{
function _get(index) {
return null;
}
function _set(index, value) {
rawset(index, value);
}
}
CPlayer.rawnewmember("data", {}.setdelegate(LUA_DELEGATE))
if(!player.data.someKey) player.data.someKey = "some value";
print(player.data.someKey); // some value
Disclaimer: Might not work on official squirrel plugin due to new instances of CPlayer getting generated and returned sometimes