{"hash":"0xB7DBB2986B87E230","ns":"PED","name":"_HAS_PED_SHOT_RECENTLY","slug":"_HAS_PED_SHOT_RECENTLY","official":false,"named":true,"luaName":"HasPedShotRecently","game":"rdr3","apiset":"client","returnType":"BOOL","params":[{"name":"ped","type":"Ped"},{"name":"seconds","type":"float"}],"summary":"True if the ped fired a weapon within the last `seconds` (seconds -> compared in ms internally).","descriptions":[{"source":"alloc8or","format":"text","body":"True if the ped fired a weapon within the last `seconds` (seconds -> compared in ms internally). Returns false if no recent shot is recorded."}],"examples":[],"aliases":[],"enums":[],"related":[],"build":"1207","sources":["alloc8or"],"doc":2,"url":"https://natives.borderlinerp.com/natives/PED/_HAS_PED_SHOT_RECENTLY","markdownUrl":"https://natives.borderlinerp.com/natives/PED/_HAS_PED_SHOT_RECENTLY.md","snippets":{"lua":"local retval = HasPedShotRecently(ped, seconds)","luaInvoke":"local retval = Citizen.InvokeNative(0xB7DBB2986B87E230, ped, seconds, Citizen.ReturnResultAnyway())","js":"const retval = HasPedShotRecently(ped, seconds);","jsInvoke":"const retval = Citizen.invokeNative('0xB7DBB2986B87E230', ped, seconds + 0.0000001, Citizen.returnResultAnyway());","csharp":"bool retval = Function.Call<bool>((Hash)0xB7DBB2986B87E230, ped, seconds);","notes":["Float parameters: Lua integers (`10`, or whole numbers decoded from NUI/JSON) are sent as ints and read as garbage. Write `10.0` or `value + 0.0`. The generated JS wrappers add `0.0000001` to non-zero floats for the same reason.","The name is a community guess and may change. If the named call is missing in your client build, use `InvokeNative` with the hash — it always works."]}}