GET_SELECTED_PED_WEAPON
An alias of [GET_CURRENT_PED_WEAPON](#\_0xB0237302). Note, the client-side [GET_SELECTED_PED_WEAPON](#\_0x0A6DB4965674D243) native returns the weapon selected via the HUD (weapon wheel). This data is not available to FXServer.
CFX
Signature
lua
GetSelectedPedWeapon(PlayerPedId())
-- returns HashParameters
| Name | Type | Description |
|---|---|---|
| Ped | The target ped. |
Usage
lua
GetSelectedPedWeapon(PlayerPedId())Generated from the native name, hash, and parameter list. Add a real example.
Details
- Hash
- API set
- Source
- cfx
Source: cfx
