How to remove a specific item from memory store service?

function setOpen()
	if #players:GetPlayers() < maxPlayers - 1 then
		openStore:AddAsync({game.JobId, "en-us"}, 20, 0)
		--openStore:RemoveAsync()
	end
end

This is my code, the purpose of it is to set a server open for my queue system. When a game is about to end, setOpen() is ran which adds the job id, and a second value (ignore en-us, i put it there temporarily)

My problem is, I want to remove the item I added if the server fills up or shuts down so players wont be teleported if the server isnt availble.

RemoveAsync requires a key, but I don’t know where to get the key

the key is what you set it with, e.g: SetAsync(“aeeee”, …), aeeee is the key

that was simple. Feeling very dumb rn :<

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.