{"hash":"0x163E252DE035A133","ns":"OBJECT","name":"GET_OFFSET_FROM_COORD_AND_HEADING_IN_WORLD_COORDS","slug":"GET_OFFSET_FROM_COORD_AND_HEADING_IN_WORLD_COORDS","official":true,"named":true,"luaName":"GetOffsetFromCoordAndHeadingInWorldCoords","game":"rdr3","apiset":"client","returnType":"Vector3","params":[{"name":"xPos","type":"float"},{"name":"yPos","type":"float"},{"name":"zPos","type":"float"},{"name":"heading","type":"float"},{"name":"xOffset","type":"float"},{"name":"yOffset","type":"float"},{"name":"zOffset","type":"float"}],"summary":"Old name: _GET_OBJECT_OFFSET_FROM_COORDS","descriptions":[{"source":"alloc8or","format":"text","body":"Old name: _GET_OBJECT_OFFSET_FROM_COORDS"}],"examples":[],"aliases":[],"enums":[],"related":[],"build":"1207","gtaHash":"0x163E252DE035A133","gtaJhash":"0x87A42A12","sources":["alloc8or"],"doc":2,"url":"https://natives.borderlinerp.com/natives/OBJECT/GET_OFFSET_FROM_COORD_AND_HEADING_IN_WORLD_COORDS","markdownUrl":"https://natives.borderlinerp.com/natives/OBJECT/GET_OFFSET_FROM_COORD_AND_HEADING_IN_WORLD_COORDS.md","snippets":{"lua":"local retval = GetOffsetFromCoordAndHeadingInWorldCoords(xPos, yPos, zPos, heading, xOffset, yOffset, zOffset)","luaInvoke":"local retval = Citizen.InvokeNative(0x163E252DE035A133, xPos, yPos, zPos, heading, xOffset, yOffset, zOffset, Citizen.ResultAsVector())","js":"const retval = GetOffsetFromCoordAndHeadingInWorldCoords(xPos, yPos, zPos, heading, xOffset, yOffset, zOffset);","jsInvoke":"const retval = Citizen.invokeNative('0x163E252DE035A133', xPos + 0.0000001, yPos + 0.0000001, zPos + 0.0000001, heading + 0.0000001, xOffset + 0.0000001, yOffset + 0.0000001, zOffset + 0.0000001, Citizen.returnResultAnyway(), Citizen.resultAsVector());","csharp":"Vector3 retval = Function.Call<Vector3>((Hash)0x163E252DE035A133, xPos, yPos, zPos, heading, xOffset, yOffset, zOffset);","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."]}}