fix: player.get_camera, set_camera are not documented
This commit is contained in:
parent
934c5f194e
commit
652f652e55
@ -112,6 +112,18 @@ player.get_name(playerid: int) -> str
|
|||||||
|
|
||||||
Player name setter and getter
|
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
|
```lua
|
||||||
player.set_selected_slot(playerid: int, slotid: int)
|
player.set_selected_slot(playerid: int, slotid: int)
|
||||||
```
|
```
|
||||||
|
|||||||
@ -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
|
```lua
|
||||||
player.set_selected_slot(playerid: int, slotid: int)
|
player.set_selected_slot(playerid: int, slotid: int)
|
||||||
```
|
```
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user