The Lab
PED native

TIME_SINCE_PED_LAST_SHOT

returns float1 parambuild 1207

Returns the time elapsed since ped last fired a weapon.

Signature

C
float TIME_SINCE_PED_LAST_SHOT(Ped ped); // 0x285D36C5C72B0569 b1207

Parameters

#NameType
1pedPed

Facts

Facts about TIME_SINCE_PED_LAST_SHOT
Name
TIME_SINCE_PED_LAST_SHOT
Hash
0x285D36C5C72B0569
Namespace
Returns
float
Game build
1207

Examples

Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.

Lua
local result = Citizen.InvokeNative(0x285D36C5C72B0569, -- TIME_SINCE_PED_LAST_SHOT
  PlayerPedId(), -- Ped ped
  Citizen.ResultAsFloat()
)
print(result)
JavaScript
const result = Citizen.invokeNative("0x285D36C5C72B0569", // TIME_SINCE_PED_LAST_SHOT
  PlayerPedId(), // Ped ped
  Citizen.resultAsFloat()
);
console.log(result)
C#
float result = Function.Call<float>((Hash)0x285D36C5C72B0569, // TIME_SINCE_PED_LAST_SHOT
  API.PlayerPedId() // Ped ped
);
All PED natives

Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.