{"hash":"0xBEA3A6E5F5F79A6F","ns":"PLAYER","name":"_GET_PLAYER_INTERACTION_AIM_ENTITY","slug":"_GET_PLAYER_INTERACTION_AIM_ENTITY","official":false,"named":true,"luaName":"GetPlayerInteractionAimEntity","game":"rdr3","apiset":"client","returnType":"BOOL","params":[{"name":"player","type":"Player"},{"name":"outEntity","type":"Entity*"}],"summary":"Get the entity the player is aiming at with/without weapon.","descriptions":[{"source":"alloc8or","format":"text","body":"Get the entity the player is aiming at with/without weapon."},{"source":"vorp","format":"text","body":"_GET_PLAYER_I*"}],"examples":[],"aliases":[],"enums":[],"related":[],"build":"1207","sources":["alloc8or","vorp"],"doc":2,"url":"https://natives.borderlinerp.com/natives/PLAYER/_GET_PLAYER_INTERACTION_AIM_ENTITY","markdownUrl":"https://natives.borderlinerp.com/natives/PLAYER/_GET_PLAYER_INTERACTION_AIM_ENTITY.md","snippets":{"lua":"local retval, outEntity = GetPlayerInteractionAimEntity(player, outEntity)","luaInvoke":"local retval, outEntity = Citizen.InvokeNative(0xBEA3A6E5F5F79A6F, player, Citizen.PointerValueIntInitialized(outEntity), Citizen.ReturnResultAnyway())","js":"const [retval, outEntity] = GetPlayerInteractionAimEntity(player, outEntity);","jsInvoke":"const [retval, outEntity] = Citizen.invokeNative('0xBEA3A6E5F5F79A6F', player, Citizen.pointerValueIntInitialized(outEntity), Citizen.returnResultAnyway());","csharp":"var outEntity = new OutputArgument();\nbool retval = Function.Call<bool>((Hash)0xBEA3A6E5F5F79A6F, player, outEntity);\n// outEntity.GetResult<int>()","notes":["The last argument is an in/out pointer: pass its initial value, and the updated value is returned after the result.","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."]}}