# WEAPON::GET_CURRENT_PED_VEHICLE_WEAPON

- **Hash:** `0x1017582BCD3832DC`
- **Namespace:** WEAPON
- **Runtime name (Lua/JS):** `GetCurrentPedVehicleWeapon`
- **Side:** client (game native)
- **Name status:** official
- **Documentation:** named only
- **Since game build:** 1207
- **URL:** https://natives.borderlinerp.com/natives/WEAPON/GET_CURRENT_PED_VEHICLE_WEAPON

## Signature

```c
BOOL GET_CURRENT_PED_VEHICLE_WEAPON(Ped ped, Hash* weaponHash);
```

## Parameters

- `ped` (`Ped`)
- `weaponHash` (`Hash*`)

## Returns

`BOOL`

## Usage

### Lua

```lua
local retval, weaponHash = GetCurrentPedVehicleWeapon(ped, weaponHash)

-- always available, by hash
local retval, weaponHash = Citizen.InvokeNative(0x1017582BCD3832DC, ped, Citizen.PointerValueIntInitialized(weaponHash), Citizen.ReturnResultAnyway())
```

### JavaScript

```js
const [retval, weaponHash] = GetCurrentPedVehicleWeapon(ped, weaponHash);

// by hash
const [retval, weaponHash] = Citizen.invokeNative('0x1017582BCD3832DC', ped, Citizen.pointerValueIntInitialized(weaponHash), Citizen.returnResultAnyway());
```

### C#

```csharp
var weaponHash = new OutputArgument();
bool retval = Function.Call<bool>((Hash)0x1017582BCD3832DC, ped, weaponHash);
// weaponHash.GetResult<int>()
```

- The last argument is an in/out pointer: pass its initial value, and the updated value is returned after the result.

## See also

- [WEAPON::SET_CURRENT_PED_VEHICLE_WEAPON](https://natives.borderlinerp.com/natives/WEAPON/SET_CURRENT_PED_VEHICLE_WEAPON.md)

*Sources: alloc8or RDR3 NativeDB.*
