This function will get the player weapon mode.
Original: getPlayerWeaponMode
Declaration
async def getPlayerWeaponMode(id : int) -> int
Parameters
int id: the player id.
Returns
int: the player weaponMode, for more information see Weapon mode constants.
Source code in src/pyg2o/functions/player.py
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975 | async def getPlayerWeaponMode(id : int) -> int:
"""
This function will get the player weapon mode.
Original: [getPlayerWeaponMode](https://gothicmultiplayerteam.gitlab.io/docs/0.3.0/script-reference/server-functions/player/getPlayerWeaponMode/)
## Declaration
```python
async def getPlayerWeaponMode(id : int) -> int
```
## Parameters
`int` **id**: the player id.
## Returns
`int`: the player weaponMode, for more information see [Weapon mode constants](../../constants/weapon-mode.md).
"""
data = f'return {get_call_repr()}'
server = await PythonWebsocketServer.get_server()
result = await server.make_request(data)
return result
|