{"hash":"0x1899F328B0E12848","ns":"ENTITY","name":"GET_OFFSET_FROM_ENTITY_IN_WORLD_COORDS","slug":"GET_OFFSET_FROM_ENTITY_IN_WORLD_COORDS","official":true,"named":true,"luaName":"GetOffsetFromEntityInWorldCoords","game":"rdr3","apiset":"client","returnType":"Vector3","params":[{"name":"entity","type":"Entity"},{"name":"offsetX","type":"float"},{"name":"offsetY","type":"float"},{"name":"offsetZ","type":"float"}],"summary":"Offset values are relative to the entity.","descriptions":[{"source":"alloc8or","format":"text","body":"Offset values are relative to the entity.\n\nx = left/right\ny = forward/backward\nz = up/down"}],"examples":[],"aliases":[],"enums":[],"related":[],"build":"1207","gtaHash":"0x1899F328B0E12848","gtaJhash":"0xABCF043A","sources":["alloc8or"],"doc":2,"url":"https://natives.borderlinerp.com/natives/ENTITY/GET_OFFSET_FROM_ENTITY_IN_WORLD_COORDS","markdownUrl":"https://natives.borderlinerp.com/natives/ENTITY/GET_OFFSET_FROM_ENTITY_IN_WORLD_COORDS.md","snippets":{"lua":"local retval = GetOffsetFromEntityInWorldCoords(entity, offsetX, offsetY, offsetZ)","luaInvoke":"local retval = Citizen.InvokeNative(0x1899F328B0E12848, entity, offsetX, offsetY, offsetZ, Citizen.ResultAsVector())","js":"const retval = GetOffsetFromEntityInWorldCoords(entity, offsetX, offsetY, offsetZ);","jsInvoke":"const retval = Citizen.invokeNative('0x1899F328B0E12848', entity, offsetX + 0.0000001, offsetY + 0.0000001, offsetZ + 0.0000001, Citizen.returnResultAnyway(), Citizen.resultAsVector());","csharp":"Vector3 retval = Function.Call<Vector3>((Hash)0x1899F328B0E12848, entity, offsetX, offsetY, offsetZ);","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."]}}