{"hash":"0x16908E859C3AB698","ns":"ENTITY","name":"_SET_ENTITY_ATTACHED_OFFSET","slug":"_SET_ENTITY_ATTACHED_OFFSET","official":false,"named":true,"luaName":"SetEntityAttachedOffset","game":"rdr3","apiset":"client","returnType":"void","params":[{"name":"entity","type":"Entity"},{"name":"horizontalMode","type":"BOOL"},{"name":"x","type":"float"},{"name":"y","type":"float"},{"name":"z","type":"float"}],"summary":"Applies and updates the positional offset of an entity relative to the entity it is attached to, while also controlling whether the offset is interpreted horizontally.","descriptions":[{"source":"alloc8or","format":"text","body":"Applies and updates the positional offset of an entity relative to the entity it is attached to, while also controlling whether the offset is interpreted horizontally.\nTypically used after ATTACH_ENTITY_TO_ENTITY."},{"source":"vorp","format":"text","body":"Applies and updates the positional offset of an entity relative to the entity it is attached to, while also controlling whether the offset is interpreted horizontally or vertically\nThis native is typically used after ATTACH_ENTITY_TO_ENTITY"}],"examples":[],"aliases":[],"enums":[],"related":[],"build":"1207","sources":["alloc8or","vorp"],"doc":2,"url":"https://natives.borderlinerp.com/natives/ENTITY/_SET_ENTITY_ATTACHED_OFFSET","markdownUrl":"https://natives.borderlinerp.com/natives/ENTITY/_SET_ENTITY_ATTACHED_OFFSET.md","snippets":{"lua":"SetEntityAttachedOffset(entity, horizontalMode, x, y, z)","luaInvoke":"Citizen.InvokeNative(0x16908E859C3AB698, entity, horizontalMode, x, y, z)","js":"SetEntityAttachedOffset(entity, horizontalMode, x, y, z);","jsInvoke":"Citizen.invokeNative('0x16908E859C3AB698', entity, horizontalMode, x + 0.0000001, y + 0.0000001, z + 0.0000001);","csharp":"Function.Call((Hash)0x16908E859C3AB698, entity, horizontalMode, x, y, z);","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."]}}