This function will set the player visual for all players.
Original: setPlayerVisual
Declaration
async def setPlayerVisual(id : int, bodyModel : str, bodyTxt : int, headModel : str, headTxt : int)
Parameters
int id: the player id.
str bodyModel: the name of the body model (ASC), e.g: HUM_BODY_NAKED0.
int bodyTxt: the numeric id of body texture file. Texture id can be read from V(number) filename part, for example, in this file: HUM_BODY_NAKED_V8_C0-C.TEX id is 8.
str headModel: the name of the head model (MMS), e.g: HUM_HEAD_PONY.
int headTxt: the numeric id of head texture file. Texture id can be read from V(number) filename part, for example, in this file: HUM_HEAD_V18_C0-C.TEX id is 18.
Source code in src/pyg2o/functions/player.py
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699 | async def setPlayerVisual(id : int, bodyModel : str, bodyTxt : int, headModel : str, headTxt : int):
"""
This function will set the player visual for all players.
Original: [setPlayerVisual](https://gothicmultiplayerteam.gitlab.io/docs/0.3.0/script-reference/server-functions/player/setPlayerVisual/)
## Declaration
```python
async def setPlayerVisual(id : int, bodyModel : str, bodyTxt : int, headModel : str, headTxt : int)
```
## Parameters
`int` **id**: the player id.
`str` **bodyModel**: the name of the body model (ASC), e.g: `HUM_BODY_NAKED0`.
`int` **bodyTxt**: the numeric id of body texture file. Texture id can be read from V(number) filename part, for example, in this file: `HUM_BODY_NAKED_V8_C0-C.TEX` id is 8.
`str` **headModel**: the name of the head model (MMS), e.g: `HUM_HEAD_PONY`.
`int` **headTxt**: the numeric id of head texture file. Texture id can be read from V(number) filename part, for example, in this file: `HUM_HEAD_V18_C0-C.TEX` id is 18.
"""
data = f'return {get_call_repr()}'
server = await PythonWebsocketServer.get_server()
result = await server.make_request(data)
return result
|