{"hash":"0xAE663DDD99C8A670","ns":"PLAYER","name":"GET_PLAYER_TARGET_ENTITY","slug":"GET_PLAYER_TARGET_ENTITY","official":true,"named":true,"luaName":"GetPlayerTargetEntity","game":"rdr3","apiset":"client","returnType":"BOOL","params":[{"name":"player","type":"Player"},{"name":"entity","type":"Entity*"}],"summary":"","descriptions":[],"examples":[],"aliases":[],"enums":[],"related":[],"build":"1207","gtaHash":"0x13EDE1A5DBF797C9","gtaJhash":"0xF6AAA2D7","sources":["alloc8or"],"doc":1,"url":"https://natives.borderlinerp.com/natives/PLAYER/GET_PLAYER_TARGET_ENTITY","markdownUrl":"https://natives.borderlinerp.com/natives/PLAYER/GET_PLAYER_TARGET_ENTITY.md","snippets":{"lua":"local retval, entity = GetPlayerTargetEntity(player, entity)","luaInvoke":"local retval, entity = Citizen.InvokeNative(0xAE663DDD99C8A670, player, Citizen.PointerValueIntInitialized(entity), Citizen.ReturnResultAnyway())","js":"const [retval, entity] = GetPlayerTargetEntity(player, entity);","jsInvoke":"const [retval, entity] = Citizen.invokeNative('0xAE663DDD99C8A670', player, Citizen.pointerValueIntInitialized(entity), Citizen.returnResultAnyway());","csharp":"var entity = new OutputArgument();\nbool retval = Function.Call<bool>((Hash)0xAE663DDD99C8A670, player, entity);\n// entity.GetResult<int>()","notes":["The last argument is an in/out pointer: pass its initial value, and the updated value is returned after the result."]}}