Skip to content

Commit f5e2c68

Browse files
Plant Reference Project, .setValue (#1296)
## Changes Changed ``PlayerDataServer:setValue(player, "coins", 5)`` Where I changed the ``:`` to a ``.``, because that's how it actually is. ## Checks By submitting your pull request for review, you agree to the following: - [ x ] This contribution was created in whole or in part by me, and I have the right to submit it under the terms of this repository's open source licenses. - [ x ] I understand and agree that this contribution and a record of it are public, maintained indefinitely, and may be redistributed under the terms of this repository's open source licenses. - [ x ] To the best of my knowledge, all proposed changes are accurate. Co-authored-by: IgnisRBX <[email protected]>
1 parent 962b054 commit f5e2c68

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

content/en-us/resources/plant-reference-project.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -345,7 +345,7 @@ tell the client how many coins it has, you can call the following and let the
345345
client subscribe to it via the `PlayerDataClient.updated` event.
346346

347347
```lua
348-
PlayerDataServer:setValue(player, "coins", 5)
348+
PlayerDataServer.setValue(player, "coins", 5)
349349
```
350350

351351
Of course, this is only useful for server-to-client replication and for values that you want to persist between sessions, but this applies to a surprising number of cases in the project, including:

0 commit comments

Comments
 (0)