{"hash":"0xFA8C10DCE0706D43","ns":"PED","name":"_HAS_PED_KNOCKED_ON_DOOR","slug":"_HAS_PED_KNOCKED_ON_DOOR","official":false,"named":true,"luaName":"HasPedKnockedOnDoor","game":"rdr3","apiset":"client","returnType":"BOOL","params":[{"name":"ped","type":"Ped"}],"summary":"Checks whether the specified ped has completed a door knocking interaction.","descriptions":[{"source":"alloc8or","format":"text","body":"Checks whether the specified ped has completed a door knocking interaction.\nTypically used with _SET_DOOR_KNOCKING_WHEN_LOCKED. Returns true after the knocking interaction/animation has completed, not while it is still playing. Does not detect normal door-handle interaction."},{"source":"vorp","format":"text","body":"Checks whether the specified ped has performed a door knocking interaction\nThis is typically used together with SET_DOOR_KNOCKING_WHEN_LOCKED.\nIf a door is configured to use knocking behavior when locked, and the player interacts\nwith it, this native returns true AFTER the knocking interaction/animation has completed"}],"examples":[],"aliases":[],"enums":[],"related":[],"build":"1207","sources":["alloc8or","vorp"],"doc":2,"url":"https://natives.borderlinerp.com/natives/PED/_HAS_PED_KNOCKED_ON_DOOR","markdownUrl":"https://natives.borderlinerp.com/natives/PED/_HAS_PED_KNOCKED_ON_DOOR.md","snippets":{"lua":"local retval = HasPedKnockedOnDoor(ped)","luaInvoke":"local retval = Citizen.InvokeNative(0xFA8C10DCE0706D43, ped, Citizen.ReturnResultAnyway())","js":"const retval = HasPedKnockedOnDoor(ped);","jsInvoke":"const retval = Citizen.invokeNative('0xFA8C10DCE0706D43', ped, Citizen.returnResultAnyway());","csharp":"bool retval = Function.Call<bool>((Hash)0xFA8C10DCE0706D43, ped);","notes":["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."]}}