Skip to content

function getPlayerHelmet

This function will get the equipped player helmet.
Original: getPlayerHelmet

Declaration

async def getPlayerHelmet(id : int) -> str

Parameters

int id: the player id.

Returns

str: the item instance from Daedalus scripts.

Source code in src/pyg2o/functions/player.py
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
async def getPlayerHelmet(id : int) -> str:
    """
    This function will get the equipped player helmet.
    Original: [getPlayerHelmet](https://gothicmultiplayerteam.gitlab.io/docs/0.3.0/script-reference/server-functions/player/getPlayerHelmet/)

    ## Declaration
    ```python
    async def getPlayerHelmet(id : int) -> str
    ```
    ## Parameters
    `int` **id**: the player id.
    ## Returns
    `str`: the item instance from Daedalus scripts.
    """
    data = f'return {get_call_repr()}'

    server = await PythonWebsocketServer.get_server()
    result = await server.make_request(data)
    return result