This function will get the player fatness factor.
Original: getPlayerFatness
Declaration
async def getPlayerFatness(id : int) -> float
Parameters
int id: the player id.
Returns
float: the fatness ratio.
Source code in src/pyg2o/functions/player.py
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400 | async def getPlayerFatness(id : int) -> float:
"""
This function will get the player fatness factor.
Original: [getPlayerFatness](https://gothicmultiplayerteam.gitlab.io/docs/0.3.0/script-reference/server-functions/player/getPlayerFatness/)
## Declaration
```python
async def getPlayerFatness(id : int) -> float
```
## Parameters
`int` **id**: the player id.
## Returns
`float`: the fatness ratio.
"""
data = f'return {get_call_repr()}'
server = await PythonWebsocketServer.get_server()
result = await server.make_request(data)
return result
|