From b05f3a9de6fc5b784ad95681908c52d1ee418cc0 Mon Sep 17 00:00:00 2001 From: richard <56808540+littensy@users.noreply.github.com> Date: Sun, 21 Jun 2026 18:54:46 -0700 Subject: [PATCH] docs: add missing `playerReadyEvent` call --- README.md | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 43a7c64..07d9641 100644 --- a/README.md +++ b/README.md @@ -700,7 +700,7 @@ client.addSignals({ status = store.setStatus, timer = store.timerAtom, -- Signals unique to a player should also have a key unique to - -- that player, to avoid overwriting other synced signals + -- that player, to avoid name collisions [`inventory-{Players.LocalPlayer.UserId}`] = setInventory, }) @@ -709,6 +709,9 @@ syncEvent.OnClientEvent:Connect(function(updates) client.patch(updates) end) +-- Notify the server that the client is ready to receive updates +playerReadyEvent:FireServer() + -- The signals will now update to match the server's state subscribe(getInventory, function(inventory) print("My inventory is", table.concat(inventory)) @@ -844,7 +847,7 @@ client.addSignals({ status = store.setStatus, timer = store.timerAtom, -- Signals unique to a player should also have a key unique to - -- that player, to avoid overwriting other synced signals + -- that player, to avoid name collisions [`inventory-{Players.LocalPlayer.UserId}`] = clientStore.setInventory, }) ```