# WEAPON::GET_PED_LAST_WEAPON_IMPACT_COORD

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

## Signature

```c
BOOL GET_PED_LAST_WEAPON_IMPACT_COORD(Ped ped, Vector3* coords);
```

## Parameters

- `ped` (`Ped`)
- `coords` (`Vector3*`)

## Returns

`BOOL`

## Usage

### Lua

```lua
local retval, coords = GetPedLastWeaponImpactCoord(ped, coords)

-- always available, by hash
local retval, coords = Citizen.InvokeNative(0x6C4D0409BA1A2BC2, ped, Citizen.PointerValueVector(), Citizen.ReturnResultAnyway())
```

### JavaScript

```js
const [retval, coords] = GetPedLastWeaponImpactCoord(ped, coords);

// by hash
const [retval, coords] = Citizen.invokeNative('0x6C4D0409BA1A2BC2', ped, Citizen.pointerValueVector(), Citizen.returnResultAnyway());
```

### C#

```csharp
var coords = new OutputArgument();
bool retval = Function.Call<bool>((Hash)0x6C4D0409BA1A2BC2, ped, coords);
// coords.GetResult<Vector3>()
```

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

*Sources: alloc8or RDR3 NativeDB.*
