Merge branch 'main' into dev

This commit is contained in:
MihailRis
2025-11-04 16:02:46 +03:00
12 changed files with 119 additions and 17 deletions
+12
View File
@@ -119,6 +119,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)
```
+6
View File
@@ -190,6 +190,12 @@ function on_hud_open(playerid: int)
Called after world open.
```lua
function on_hud_render()
```
Called every frame. Used for client-side tasks such as animation and camera control.
```lua
function on_hud_close(playerid: int)
```