{"hash":"0xA93F925F1942E434","ns":"OBJECT","name":"_SET_DOOR_KNOCKING_WHEN_LOCKED","slug":"_SET_DOOR_KNOCKING_WHEN_LOCKED","official":false,"named":true,"luaName":"SetDoorKnockingWhenLocked","game":"rdr3","apiset":"client","returnType":"void","params":[{"name":"doorHash","type":"Hash"},{"name":"toggle","type":"BOOL"}],"summary":"Changes the interaction behavior for a locked door.","descriptions":[{"source":"alloc8or","format":"text","body":"Changes the interaction behavior for a locked door.\nWhen enabled, interacting with a locked door makes the character knock/tap instead of trying the handle.\nThis does not unlock or open the door and only changes the locked-door interaction behavior/animation."},{"source":"vorp","format":"text","body":"Changes the interaction behavior for a locked door.\nNormally, when interacting with a locked door, the character tries the handle. When this native is enabled, that behavior is replaced with a knocking/tapping interaction for the specified door.\nWith toggle enabled:\n- pressing the interact button on a locked door makes the character knock/tap on the door instead of trying the handle\n- this does not unlock the door\n- if the door is in a breakable/force-open state, it may still be opened by physically forcing it (e.g. sprinting into it), but normal interaction still uses the knocking behavior"}],"examples":[],"aliases":[],"enums":[],"related":["0x4D8611DFE1126478"],"build":"1207","sources":["alloc8or","vorp"],"doc":2,"url":"https://natives.borderlinerp.com/natives/OBJECT/_SET_DOOR_KNOCKING_WHEN_LOCKED","markdownUrl":"https://natives.borderlinerp.com/natives/OBJECT/_SET_DOOR_KNOCKING_WHEN_LOCKED.md","snippets":{"lua":"SetDoorKnockingWhenLocked(doorHash, toggle)","luaInvoke":"Citizen.InvokeNative(0xA93F925F1942E434, doorHash, toggle)","js":"SetDoorKnockingWhenLocked(doorHash, toggle);","jsInvoke":"Citizen.invokeNative('0xA93F925F1942E434', doorHash, toggle);","csharp":"Function.Call((Hash)0xA93F925F1942E434, doorHash, toggle);","notes":["Hash parameters: the named function also accepts a string and hashes it for you; `Citizen.InvokeNative` needs the number — pass `joaat(\"name\")` or a backtick literal like `` `name` ``.","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."]}}