Skip to content

Commit f41beef

Browse files
committed
feat: add information about UpdateSetting export
1 parent 9ba045f commit f41beef

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

pages/radio/devdocs.mdx

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,18 @@ local removed = exports["zerio-radio"]:RemoveChannel(frequency)
7070

7171
This export would remove a channel from zerio-radio. Or, in other words, make it fully "unlocked" meaning anyone can join it.
7272

73+
#### UpdateSetting
74+
75+
```lua
76+
exports["zerio-radio"]:UpdateSetting(identifier, key, value)
77+
exports["zerio-radio"]:UpdateSetting(source, key, value)
78+
```
79+
80+
This export updates the value of a setting for a specific player. You can either use the players identifier, or their source.
81+
The value keys/settings are: size, volume, callsign, theme, useMouse, anonymous, allowDrag, memberList, positionX, positionY, position2X, position2Y.
82+
83+
You can have a look at the database table `zerio_radio_settings` for further information about the valid/possible values, or open a ticket in our community server.
84+
7385
#### UpdateChannelLabel
7486

7587
```lua

0 commit comments

Comments
 (0)