Any changes to players storage via database will be discarded once the player relog
This one should work
function setPartyStorage(cid, key, value)
local party = getPlayerParty(cid) or 0
if party ~= 0 then
for _, pid in pairs(getPartyMembers(party)) do
doCreatureSetStorage(pid, key...