Skip to content

Commit b4cefca

Browse files
authored
Update TogglePlayerSpectating.md (#1119)
1 parent 3aa04e9 commit b4cefca

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

frontend/docs/scripting/functions/TogglePlayerSpectating.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,12 @@ tags: ["player"]
99

1010
Toggle whether a player is in spectator mode or not. While in spectator mode a player can spectate (watch) other players and vehicles. After using this function, either [PlayerSpectatePlayer](PlayerSpectatePlayer) or [PlayerSpectateVehicle](PlayerSpectateVehicle) needs to be used.
1111

12+
## Parameters
13+
1214
| Name | Description |
1315
| ----------- | ------------------------------------------------- |
14-
| playerid | The ID of the player who should spectate |
15-
| bool:toggle | 'true' to enable spectating and 'false to disable |
16+
| playerid | The ID of the player who should spectate. |
17+
| bool:toggle | **true** to enable spectating and **false** to disable. |
1618

1719
## Returns
1820

0 commit comments

Comments
 (0)