{"hash":"0x497C6B1A2C9AE69C","ns":"ENTITY","name":"GET_OFFSET_FROM_ENTITY_GIVEN_WORLD_COORDS","slug":"GET_OFFSET_FROM_ENTITY_GIVEN_WORLD_COORDS","official":true,"named":true,"luaName":"GetOffsetFromEntityGivenWorldCoords","game":"rdr3","apiset":"client","returnType":"Vector3","params":[{"name":"entity","type":"Entity"},{"name":"posX","type":"float"},{"name":"posY","type":"float"},{"name":"posZ","type":"float"}],"summary":"","descriptions":[],"examples":[],"aliases":[],"enums":[],"related":[],"build":"1207","gtaHash":"0x2274BC1C4885E333","gtaJhash":"0x6477EC9E","sources":["alloc8or"],"doc":1,"url":"https://natives.borderlinerp.com/natives/ENTITY/GET_OFFSET_FROM_ENTITY_GIVEN_WORLD_COORDS","markdownUrl":"https://natives.borderlinerp.com/natives/ENTITY/GET_OFFSET_FROM_ENTITY_GIVEN_WORLD_COORDS.md","snippets":{"lua":"local retval = GetOffsetFromEntityGivenWorldCoords(entity, posX, posY, posZ)","luaInvoke":"local retval = Citizen.InvokeNative(0x497C6B1A2C9AE69C, entity, posX, posY, posZ, Citizen.ResultAsVector())","js":"const retval = GetOffsetFromEntityGivenWorldCoords(entity, posX, posY, posZ);","jsInvoke":"const retval = Citizen.invokeNative('0x497C6B1A2C9AE69C', entity, posX + 0.0000001, posY + 0.0000001, posZ + 0.0000001, Citizen.returnResultAnyway(), Citizen.resultAsVector());","csharp":"Vector3 retval = Function.Call<Vector3>((Hash)0x497C6B1A2C9AE69C, entity, posX, posY, posZ);","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."]}}