Skip to content

function removeWeapon

This function will cause player to hide a weapon.
Original: removeWeapon

Declaration

async def removeWeapon(id : int)

Parameters

int id: the player id.

Source code in src/pyg2o/functions/player.py
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
async def removeWeapon(id : int):
    """
    This function will cause player to hide a weapon.
    Original: [removeWeapon](https://gothicmultiplayerteam.gitlab.io/docs/0.3.0/script-reference/server-functions/player/removeWeapon/)

    ## Declaration
    ```python
    async def removeWeapon(id : int)
    ```
    ## Parameters
    `int` **id**: the player id.
    """
    data = f'return {get_call_repr()}'

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