# PED::TIME_SINCE_PED_LAST_SHOT

- **Hash:** `0x285D36C5C72B0569`
- **Namespace:** PED
- **Runtime name (Lua/JS):** `TimeSincePedLastShot`
- **Side:** client (game native)
- **Name status:** official
- **Documentation:** described
- **Since game build:** 1207
- **URL:** https://natives.borderlinerp.com/natives/PED/TIME_SINCE_PED_LAST_SHOT

## Signature

```c
float TIME_SINCE_PED_LAST_SHOT(Ped ped);
```

## Parameters

- `ped` (`Ped`)

## Returns

`float`

## Description

Returns time since the specified ped last shot, in seconds. (fPlayerJustShotTime)

## Usage

### Lua

```lua
local retval = TimeSincePedLastShot(ped)

-- always available, by hash
local retval = Citizen.InvokeNative(0x285D36C5C72B0569, ped, Citizen.ResultAsFloat())
```

### JavaScript

```js
const retval = TimeSincePedLastShot(ped);

// by hash
const retval = Citizen.invokeNative('0x285D36C5C72B0569', ped, Citizen.returnResultAnyway(), Citizen.resultAsFloat());
```

### C#

```csharp
float retval = Function.Call<float>((Hash)0x285D36C5C72B0569, ped);
```

*Sources: alloc8or RDR3 NativeDB.*
