RedM Natives

TIME_SINCE_PED_LAST_SHOT

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

Hash0x285D36C5C72B0569
Runtime nameTimeSincePedLastShot
NamespacePED
SideClient
NameOfficial
Docs
Since build1207

Signature

float TIME_SINCE_PED_LAST_SHOT(Ped ped);

Parameters

NameTypeDescription
pedPed—

Returns float

Description

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

Usage

Lua
local retval = TimeSincePedLastShot(ped)

-- always works, by hash
local retval = Citizen.InvokeNative(0x285D36C5C72B0569, ped, Citizen.ResultAsFloat())
JavaScript and C#
JavaScript
const retval = TimeSincePedLastShot(ped);

// by hash
const retval = Citizen.invokeNative('0x285D36C5C72B0569', ped, Citizen.returnResultAnyway(), Citizen.resultAsFloat());
C#
float retval = Function.Call<float>((Hash)0x285D36C5C72B0569, ped);

Sources

alloc8or RDR3 NativeDB

Something wrong or missing? Contribute a verified note — corrections ship through pull requests.