fix: player.get_camera, set_camera are not documented

This commit is contained in:
MihailRis 2025-11-04 16:02:11 +03:00
parent 934c5f194e
commit 652f652e55
2 changed files with 24 additions and 0 deletions

View File

@ -112,6 +112,18 @@ player.get_name(playerid: int) -> str
Player name setter and getter
```lua
player.get_camera(playerid: int) -> int
```
Returns the index of the player's current camera.
```lua
player.set_camera(playerid: int, camera_index: int)
```
Switches the player's camera. See [cameras](libcameras.md).
```lua
player.set_selected_slot(playerid: int, slotid: int)
```

View File

@ -112,6 +112,18 @@ player.get_name(playerid: int) -> str
Сеттер и геттер имени игрока
```lua
player.get_camera(playerid: int) -> int
```
Возвращает индекс текущей камеры игрока
```lua
player.set_camera(playerid: int, camera_index: int)
```
Переключает камеру игрока. См. [камеры](libcameras.md).
```lua
player.set_selected_slot(playerid: int, slotid: int)
```