TIME_SINCE_PED_LAST_SHOT
Returns time since the specified ped last shot, in seconds.
Hash
0x285D36C5C72B0569Runtime name
TimeSincePedLastShotNamespacePED
SideClient
NameOfficial
Docs
Since build1207
Signature
float TIME_SINCE_PED_LAST_SHOT(Ped ped);Parameters
| Name | Type | Description |
|---|---|---|
ped | Ped | — |
Returns float
Description
Returns time since the specified ped last shot, in seconds. (fPlayerJustShotTime)
Usage
local retval = TimeSincePedLastShot(ped)
-- always works, by hash
local retval = Citizen.InvokeNative(0x285D36C5C72B0569, ped, Citizen.ResultAsFloat())JavaScript and C#
const retval = TimeSincePedLastShot(ped);
// by hash
const retval = Citizen.invokeNative('0x285D36C5C72B0569', ped, Citizen.returnResultAnyway(), Citizen.resultAsFloat());float retval = Function.Call<float>((Hash)0x285D36C5C72B0569, ped);Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.